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
while () { print if /\Q$pattern\E/; } close FILE; Good luck, .ted -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, June 06, 2003 10:07 AM To: [EMAIL PROTECTED] Subject: regexing AND NOT Dear cgi-colleagues, I want to write a cgi-script to a

regexing AND NOT

2003-06-06 Thread stahl
Dear cgi-colleagues, I want to write a cgi-script to allow users to search for strings in a text. Therefore I use a form offering a field where he / she can put in what to look for. Instead of asking for a regular expression I want to give them the possibility of entering something like s