> that replaces all punctuation from the string with nothing... > well that's if the "punct" bit is supposed to read > [[:punct:]] - it looks like you have an extra space in there...
Correct! > > my regex is not so good.... what is this one doing : > > > > #REreplace(request.myvar,"([[:punct:] ])","","all")# What this regex says is: Find me all occurrences of either punctuation OR a space and remove them all. This would leave you with a string with alpha numeric characters and line breaks/tabs etc. Anything in square brackets is a grouping of things to search for, so if I put: [abc] It would search for an occurrence of either a or b or c (note case). HTH Paul PS One of these days, I'm going to write a simple regex page that will give examples and that you can test stuff out on - hey... I've got half an hour! -- ** 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]
