Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 24th, 2005, 12:05 PM
Registered User
 
Join Date: Jun 2005
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Need help from Regex Gurus!!!

Hey guys,

This is my first time posting in this forum and I hope it won't be my last.

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

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
For graphics gurus... your head in C++ programmed C++ Programming 1 November 2nd, 2006 08:21 AM
Needs help from Gurus-regarding Windows Services avats VS.NET 2002/2003 1 August 9th, 2005 08:01 AM
Question for .NET GURUs mike_abc Pro VB.NET 2002/2003 1 January 12th, 2005 10:43 AM
All u Gurus Out there Plz help ! augustine Biztalk 1 August 4th, 2004 08:57 AM



All times are GMT -4. The time now is 09:26 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.