| |
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
|
|