Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


I need help from RegEx gurus!

 
Logged in as: Guest
arrSession:exec spGetSession 2,3,3522
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> ASP >> I need help from RegEx gurus!
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 I need help from RegEx gurus! - 6/24/2005 3:40:37 AM   
  BackspaceMaster

 

Posts: 1
Score: 0
Joined: 6/24/2005
From:
Status: offline
Hey,

I learned all about RegEx last semester but we worked in the linux environment using LEX. Now I'm trying to work with ASP/VB and it's different enough for me to not quite get it :P

Users have to input a search query to, well, execute a search on my site. I want the regex to seperate the string in an array for every rule I specify... but I want my rules to have a hierarchy of importance.

For example: The rules are that words wrapped by quotation marks are searched as a string and words that aren't are searched word for word.

Search : ["pizza ingredients" tomatoe pepper]

will seperate into:

Array(0) = pizza ingredients
Array(1) = tomatoe
Array(2) = pepper

So the rules have to have this hierarchy:

"*" (for words wrapped in quotation marks)
XXX (rule for words wrapped in spaces)

So... any ideas? I've been at this for two days.. :S
 
 
Post #: 1
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> ASP >> I need help from RegEx gurus! Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts