Wrox Programmer Forums
| 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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #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



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





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