RE: regexing AND NOT

2003-06-06 Thread Andrew Brosnan
On 6/6/03 at 7:19 PM, [EMAIL PROTECTED] wrote: > Dear Scot, > > > I don't know if you realize that you just wrote an SQL statement. > > Have you considered putting all of this in a DB? Use the DB to do > > the searching and sorting, and Perl to display the results. > > I must confess I did not r

RE: regexing AND NOT

2003-06-06 Thread stahl
Dear Scot, > I don't know if you realize that you just wrote an SQL statement. Have you > considered putting all of this in a DB? Use the DB to do the searching and > sorting, and Perl to display the results. I must confess I did not realize that. I am just beginning to write cgi-scripts based on

RE: regexing AND NOT

2003-06-06 Thread Scot Robnett
gt;disconnect; -----Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, June 06, 2003 10:26 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: regexing AND NOT Dear Ted, thank you for answering so quickly. The problem is, I don't want to make th

RE: regexing AND NOT

2003-06-06 Thread stahl
Dear Ted, thank you for answering so quickly. The problem is, I don't want to make the users write regular expressions. Of course, I have to test them with the help of 'eval' in order to prevent that an illegal regular expression is blocking the whole cgi-application. The reason for not using r

RE: regexing AND NOT

2003-06-06 Thread ted . weston
perlfaq6: (cut-n-paste to get the final "-" there) http://www.perldoc.com/perl5.8.0/pod/perlfaq6.html#How-do-I-match-a-pattern-that-is-supplied-by-the-user- How do I match a pattern that is supplied by the user? Well, if it's really a pattern, then just use chomp($pattern = ); if ($line