I figured it out.
Thanh.
-----Original Message-----
From: Matthew Walker [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 19, 2004 7:38 PM
To: CF-Talk
Subject: RE: Help with Regular _expression_
Why not simply use replaceList().
Str = replaceList(str, ".,1st,2nd,3rd,4th,5th,6th,7th,8th,9th,10th,&", "
,first,second,third,fourth,fifth,sixth,seventh,eighth,ninth,tenth, and ")
then str = reReplaceNoCase(str, "^The[[:space:]]", "")
then str = reReplace(str, "[^[:alnum:][:space:]]", "", "all")
_____
From: Thanh Nguyen [mailto:[EMAIL PROTECTED]
Sent: Thursday, 20 May 2004 1:35 p.m.
To: CF-Talk
Subject: Help with Regular _expression_
Hi All,
I tried to do this regular _expression_, but having a hard time getting the
result I want. So any help would be appreciated.
Here's what I tried to achieve.
1. remove "The" from in at the beginning of the string.
2. replace period with space.
3. Numerals are treated as though spelled out.
4. the string '1st' through '10th' are treated as if spelled out (e.g
first, second..)
5. Ampersands are treated as though spelled out as "and" and put spaces
between the words and ampersands.
6. Remove nonalphanumeric characters.
Thanh Nguyen
_____
_____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

