|
How about reReplace(address, “(^[[:space:],]+|[[:space:],]+$)”, “”, “ALL”) ?
-----Original Message-----
I have this RegEx <cfset regEx = "\s*\d*\s*(th|rd|nd|st)\s*(floor|level|lvl)|\s*(ground (floor|level))|\s*(floor|level)\s*\d*"> It is extracting LEVEL and FLOOR information from 13.000 addresses, it works fine. ....................but When I insert the remaining ADDRESS part after the floor level extraction I end up with records like " , Lamington National Park Road " ", Lamington National Park Road , " I run an extra regex <reReplace> on inserting the new address field, which is (\s*,)|($\s,)|$,|^\s But it doesn't do any good, I still end up with the records formatted like above. Anyone?
Taco Fleur --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia http://www.mxdu.com/ + 24-25 February, 2004 |
Title: RegEx..............
- [cfaussie] RE: RegEx.............. Matthew Walker
- [cfaussie] RE: RegEx.............. Taco Fleur
- [cfaussie] RE: RegEx.............. Matthew Walker
- [cfaussie] RE: RegEx.............. Taco Fleur
- [cfaussie] RE: RegEx.............. Steve Onnis
- [cfaussie] RE: RegEx.............. Taco Fleur
- [cfaussie] RE: RegEx.............. Matthew Walker
- [cfaussie] RE: RegEx.............. Taco Fleur
- [cfaussie] RE: RegEx.............. Matthew Walker
- [cfaussie] RE: RegEx.............. Steve Onnis
- [cfaussie] RE: RegEx.............. Taco Fleur
