Search found 5 matches

by pcb
08 Apr 2018, 10:52
Forum: Ask For Help
Topic: regexmatch match any line exactly in list problem Topic is solved
Replies: 8
Views: 920

Re: regexmatch match any line exactly in list problem Topic is solved

Thank you Odlanir. Regexpert level 1 million!
by pcb
07 Apr 2018, 21:40
Forum: Ask For Help
Topic: regexmatch match any line exactly in list problem Topic is solved
Replies: 8
Views: 920

Re: regexmatch match any line exactly in list problem Topic is solved

Cuadrix wrote: What do you mean? The code Odlanir posted, works perfectly.
Not for me.
What happens if you add anther string to the list, eg ...4k

Then you enter ...4k as the input to remove the line. 3 entries disappear.
by pcb
07 Apr 2018, 14:38
Forum: Ask For Help
Topic: regexmatch match any line exactly in list problem Topic is solved
Replies: 8
Views: 920

Re: regexmatch match any line exactly in list problem Topic is solved

Thanks Odlanir. This didn't work for me if I typed in ...4k
My list can contain entries with a-zA-Z0-9_\-\. in all kinds of crazy orders

...4k removed sk-4k and no.4k

I can acheive what I need with a loop but with 1000's of entries, i'm looking for efficiency.
by pcb
07 Apr 2018, 10:27
Forum: Ask For Help
Topic: regexmatch match any line exactly in list problem Topic is solved
Replies: 8
Views: 920

Re: regexmatch match any line exactly in list problem Topic is solved

Hi, I want to be able to type in one of those lines that are in list.txt to an input box then adjust list.txt so that it removes the exact line I entered. FileRead, mylist, list.txt inputbox, var, word to match, input word myfind := "\b(" . var. "\b)" pos := RegExMatch(mylist, myfind , subpat) If (m...
by pcb
07 Apr 2018, 08:19
Forum: Ask For Help
Topic: regexmatch match any line exactly in list problem Topic is solved
Replies: 8
Views: 920

regexmatch match any line exactly in list problem Topic is solved

Hi, I have read list.txt as a variable called mylist list.txt contained these lines yes-4k 4k a4k sk-4k no.4k 4k-3 Then I had an input box asking me to check to see if a line exists - var I'm trying to use regexmatch to do this. pos := RegExMatch(mylist, var , SubPat) Then I need to check if it exis...

Go to advanced search