[sf-perl] Quick question on regular expression and substitution

Loo, Peter # PHX Peter.Loo at source.wolterskluwer.com
Wed Jun 28 09:19:15 PDT 2006


Hi All,
 
Would some one know of a one liner that would replace the third
occurrence of a substring within a string?  For example:
 
$string = "?, ?, ?, ?";
 
I want to replace the third occurrence of "?" with "to_date(?,
'YYYY-MM-DD HH24:MI:SS')".
 
Thanks in advance.
 
Peter
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.pm.org/pipermail/sanfrancisco-pm/attachments/20060628/16dd24fd/attachment.html 


More information about the SanFrancisco-pm mailing list