Speedfreak has asked for the wisdom of the Perl Monks concerning the following question:
Yes, I confess I'm two clowns short of a circus.
I'm trying to write a search script for a small CSV database. Its not complex enought to warrant SQL.
Basically, I want to check the incoming string from the form against the following logic:
I want to be able to make a true/false against this to either continue the search script or warn the user to put more text into the search.
A generic regex that you can add more allowed charachters to and alter the min/max size would be good as I think this gets used a lot.
- Jed
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Making rules in Regex for string content and size
by Corion (Patriarch) on Jun 05, 2000 at 14:05 UTC | |
by zodiac (Beadle) on Jun 06, 2000 at 17:06 UTC | |
by nuance (Hermit) on Jun 07, 2000 at 00:43 UTC | |
|
Re: Makeing rules in Regex for string content and size
by perlcgi (Hermit) on Jun 05, 2000 at 14:20 UTC | |
by gaspodethewonderdog (Monk) on Jun 06, 2000 at 17:45 UTC | |
by gaspodethewonderdog (Monk) on Jun 06, 2000 at 17:46 UTC | |
|
Re: Makeing rules in Regex for string content and size
by antihec (Sexton) on Jun 05, 2000 at 14:11 UTC |