Many thanks Peter,

The " Sunday" was appended after the regex was applied so your
solution works perfectly.

If you have time could you explain what each part of the regex is
doing, so that I can learn for future?

Cheers,

Dave

2008/11/26 Peter Boughton <[EMAIL PROTECTED]>:
> Sorry, brain-dead for a moment. :(
>
> The two expressions above are incorrect - they should be
>
> $wkstr = reReplaceNoCase($wkstr,'(\s)(\w+)$',' and \2')
>
> wkstr = reReplace( wkstr , '\w+$','and \0' )
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:1200
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