you probably want to catch any [[:Punct:]] at the end of the string, although not sure what that'll do if it's "/"
Duncan Cumming IT Manager http://www.alienationdesign.co.uk mailto:[EMAIL PROTECTED] Tel: 0141 575 9700 Fax: 0141 575 9600 Creative solutions in a technical world ---------------------------------------------------------------------- Get your domain names online from: http://www.alienationdomains.co.uk Reseller options available! ---------------------------------------------------------------------- ---------------------------------------------------------------------- "Stephen Moretti" To: <[EMAIL PROTECTED]> <[EMAIL PROTECTED] cc: ter.co.uk> Subject: [ cf-dev ] More Regex... 05/06/2003 17:37 Please respond to dev I have this : ReReplace(Attributes.showBlurb,"(((mailto)|((http)|(ftp)\/\/))\: [^[:space:]] +)", '<a href="\1">\1</a>',"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 a bracket etc, then those get included in the URL http://www.thisismysite.com. becomes <a href="http://www.thisismysite.com.">http://www.thisismysite.com.</a> Anyone have some better regex for this or a way of fixing the replace, so that it does grab those invalid characters on the end of the URL string? Stephen -- ** 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 human help, e-mail: [EMAIL PROTECTED] -- ** 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 human help, e-mail: [EMAIL PROTECTED]