Sep 14, 2013, 5:49 AM
Re: [Laurent_R] Need a script for small change
Your script is applicable for the below number only. But my requirement is.
$line =~ s/<ref id="ref0152">/<ref id="R1">/g;
ref0152 is variable. it can start at any number. where ever the <title>References</title> starts, below the ref id sequence should change as R1.
One more thing is References will appear four or five times. SO every where the sequence will start at 1 like mentioned above.
Please find my input:
$xmlcont =~ s#(<ref) (id=\")ref00(\d)(\">)#\1\2F\#\4\3#gi;
(This post was edited by kuber123 on Sep 14, 2013, 6:08 AM)