RE: [ cf-dev ] More Regex...

2003-06-06 Thread Tim Blair
> That's fine in a one man project, but what happens in a team > project or when you've signed off the application to the > client and someone other than yourself changes the code in > the default action?? I don't really see your point. :o\ Surely the default action is there as a "catch" for

Re: [ cf-dev ] More Regex...

2003-06-06 Thread Taz
> If I enforce best practices then hopefully it'll rub off on other too. :o) Sometimes I practice, but rarely enforce. Taz -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For

Re: [ cf-dev ] More Regex...

2003-06-06 Thread Stephen Moretti
> > > Thats not good programming practice. You can't expect the > > default action to do something safe. You need to specify the > > action that you're going to take. > > That depends on the developer -- if I'm writing it I know it's going to > do "something safe" cos that's the way I wrote it :

Re: [ cf-dev ] More Regex...

2003-06-06 Thread Stephen Moretti
tp)|(ftp)\/\/)) > > \:[^[:space:]| > > [:punct:]]+)", '\1',"ALL") > > > > > -Original Message- > > > From: Stephen Moretti [mailto:[EMAIL PROTECTED] > > > Sent: 05 June 2003 17:37 > > > To: [EMAIL PROTECTED]

RE: [ cf-dev ] More Regex...

2003-06-06 Thread Rich Wild
no, ignore that... > -Original Message- > From: Rich Wild [mailto:[EMAIL PROTECTED] > Sent: 05 June 2003 17:29 > To: '[EMAIL PROTECTED]' > Subject: RE: [ cf-dev ] More Regex... > > > add the [:punct:] class to the exclude? > > ReReplace(Attri

RE: [ cf-dev ] More Regex...

2003-06-06 Thread Tim Blair
> Thats not good programming practice. You can't expect the > default action to do something safe. You need to specify the > action that you're going to take. That depends on the developer -- if I'm writing it I know it's going to do "something safe" cos that's the way I wrote it :o) And ju

Re: [ cf-dev ] More Regex...

2003-06-06 Thread duncan . cumming
; To: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]cc: ter.co.uk>

RE: [ cf-dev ] More Regex...

2003-06-06 Thread Rich Wild
add the [:punct:] class to the exclude? ReReplace(Attributes.showBlurb,"(((mailto)|((http)|(ftp)\/\/))\:[^[:space:]| [:punct:]]+)", '\1',"ALL") > -Original Message- > From: Stephen Moretti [mailto:[EMAIL PROTECTED] > Sent: 05 June 2003 17:37 >

[ cf-dev ] More Regex...

2003-06-06 Thread Stephen Moretti
I have this : ReReplace(Attributes.showBlurb,"(((mailto)|((http)|(ftp)\/\/))\:[^[:space:]] +)", '\1',"ALL") It looks for mailto: http: ftp: and a string and sticks the string it finds into an href. It all works fine, except that if there is something on the end of the string, say a full stop or

Re: [ cf-dev ] More Regex...

2003-06-06 Thread Stephen Moretti
> > > I think I'll have to write some loopy code to find each one > > and clean it up before sticking them in href tags :o( > > What happens if you've got a URL which actually ends with a period? For > example, a fusebox URL calling the default action of the "blah" circuit: > > http://www.blah

RE: [ cf-dev ] More Regex...

2003-06-06 Thread Tim Blair
> I think I'll have to write some loopy code to find each one > and clean it up before sticking them in href tags :o( What happens if you've got a URL which actually ends with a period? For example, a fusebox URL calling the default action of the "blah" circuit: http://www.blah.com/index.c