Steve Now i'm more confused - all of them work!
Kola Oyedeji Web developer Macromedia Certified Advanced ColdFusion 5 Developer ekeda ltd http://www.ekeda.co.uk (+44)020-8429-7300 > -----Original Message----- > From: Steve Oliver [mailto:[EMAIL PROTECTED]] > Sent: 01 February 2002 16:17 > To: CF-Talk > Subject: RE: another quick regular expression question > > > I don't think it works that way with spaces. > > If I have the string "hello world" > > And do a regexp for > > [ ]*he[ ]*llo[ ]*wor[ ]*ld[ ]* > > I don't believe that will work either, > > But this way should > > hello[ ]*world > > Or > > hello[[:space:]]*world > > > ______________________ > steve oliver > atnet solutions, inc. > http://www.atnetsolutions.com > > > -----Original Message----- > From: Kola Oyedeji [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 01, 2002 10:53 AM > To: CF-Talk > Subject: RE: another quick regular expression question > > > Steve I thought * matched 0 or more occurences? > > thanks > > Kola Oyedeji > Web developer > Macromedia Certified Advanced ColdFusion 5 Developer > ekeda ltd > http://www.ekeda.co.uk > (+44)020-8429-7300 > > > > -----Original Message----- > > From: Steve Oliver [mailto:[EMAIL PROTECTED]] > > Sent: 01 February 2002 15:34 > > To: CF-Talk > > Subject: RE: another quick regular expression question > > > > > > Yeah, you were searching for spaces with that. If you have a [ ] > > followed by a * then it's searching for one or more spaces. > > > > < title > untitled </title> > > > > <[ ]*title[ ]*>[ ]*[[:alpha:]]*[[:punct:]]*[ ]*</title> > > > > ______________________ > > steve oliver > > atnet solutions, inc. > > http://www.atnetsolutions.com > > > > > > -----Original Message----- > > From: Kola Oyedeji [mailto:[EMAIL PROTECTED]] > > Sent: Friday, February 01, 2002 5:39 AM > > To: CF-Talk > > Subject: RE: another quick regular expression question > > > > > > Thanks for the replies havent tested them out yet but will > > they work if > > the > > title tag actualy has spaces inside as well? > > < title > </title > > > > > Also could anyone see where I went wrong in my original regular > > expression: > > <[ ]*title[ ]*>[ ]*[[:alpha:]]*[[:punct:]]*[ ]*</title> > > > > as I'm trying get to grips with reg expressions.I assumed > > that * means > > 0 or > > more occurences so the above should match > <title>untitled</title> even > > if > > there are no spaces or punctuation. > > > > Thanks > > > > Kola Oyedeji > > Web developer > > Macromedia Certified Advanced ColdFusion 5 Developer > > ekeda ltd > > http://www.ekeda.co.uk > > (+44)020-8429-7300 > > > > > > ______________________________________________________________________ Dedicated Windows 2000 Server PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation � $99/Month � Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

