I posted a regex question in thread
[URL unfurl="true"]http://www.tek-tips.com/viewthread.cfm?qid=1727047[/url]
and you guys came up with the solution of
You also warned that Smartmatch was to be experimental and not to rely on the solution.
The regex has now stopped working and I find myself looking once again for a solution.
Is there a supported alternative to Smartmatch or can you suggest a different approach?
Keith
[URL unfurl="true"]http://www.tek-tips.com/viewthread.cfm?qid=1727047[/url]
and you guys came up with the solution of
Code:
$str =~ s!\.(\d{4})!$1~~[1800..2030]?".<sup>$1</sup>":$&!ge;
You also warned that Smartmatch was to be experimental and not to rely on the solution.
The regex has now stopped working and I find myself looking once again for a solution.
Is there a supported alternative to Smartmatch or can you suggest a different approach?
Keith