forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


VDSUG Question...

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
marty
Professional Member
Professional Member


Joined: 10 May 2001
Posts: 789

PostPosted: Mon Dec 26, 2005 3:01 pm    Post subject: VDSUG Question... Reply with quote

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 Smile

Any ideas ?

Thanks
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Mon Dec 26, 2005 5:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
marty
Professional Member
Professional Member


Joined: 10 May 2001
Posts: 789

PostPosted: Tue Dec 27, 2005 12:49 pm    Post subject: Reply with quote

That's what I need!

Dancing Banana Worship

Thanks!
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group