Hi,

I am afraid that my regex skills are weak and I am in the final stage
of converting a php script to a coldfusion one. I am building a string
which can be of the form:

Every first second third fourth Sunday at 11:15

What the php regex does is changes the above to read:

Every first second third and fourth Sunday at 11:15

It adds the " and".

The php regex is as follows:

$wkstr = preg_replace('/(\s)(\w+)$/i',' and $2',$wkstr);

and I need to convert this to a ReReplace function. I have looked at
the php docs to try and decipher the above regex but I don't seem to
be getting anywhere. I also don't know enough about cf regex to know
what I should convert it to.

Can anyone help, please?

Many thanks,

Dave

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: http://www.houseoffusion.com/groups/regex/message.cfm/messageid:1197
Subscription: http://www.houseoffusion.com/groups/regex/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.21

Reply via email to