| View previous topic :: View next topic |
| Author |
Message |
marty Professional Member


Joined: 10 May 2001 Posts: 789
|
Posted: Mon Dec 26, 2005 3:01 pm Post subject: VDSUG Question... |
|
|
Hi
And happy holidays to you and all your familly..
I have big file containing thousands of ursl and my app is used to search in it..
My code is this:
%%file = tonsofurls.txt
%%url = dell.com
UG FILEOPEN, 1, %%FILE, READ
%%BYTESREAD = @UG(FILEGETSIZE, 1)
%%BUFFER = @UG(FILEREADBUFSIZE, %%BYTESREAD)
%%POS1 = @UG(FILESEARCHTEXT, 1, %%url)
In reality I have no dell.com in my txt file.. but only hellodell.com
Here is my problem:
If %%url = dell.com for example, and in my list I have hellodell.com, it will flag it as found. I want to be able to have a FULL exact match.. not a match part of the string. If its DELL.com i want it to find DELL.com
Any ideas ?
Thanks |
|
| Back to top |
|
 |
Dr. Dread Professional Member


Joined: 03 Aug 2001 Posts: 1065 Location: Copenhagen, Denmark
|
Posted: Mon Dec 26, 2005 5:26 pm Post subject: |
|
|
String.DLL will do it. New version uploaded to the same download address as the previous version.
The MatchLines function now has an IDENTITY parameter to full-line matching. If that's not what
you need then a RegEx will do something like that easily.
Greetz
Dread _________________ ~~ Alcohol and calculus don't mix... Don't drink and derive! ~~
String.DLL * advanced string processing |
|
| Back to top |
|
 |
marty Professional Member


Joined: 10 May 2001 Posts: 789
|
Posted: Tue Dec 27, 2005 12:49 pm Post subject: |
|
|
That's what I need!
Thanks! |
|
| Back to top |
|
 |
|