/ Published in: Perl
![](/img/icon_sav.png?v3)
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
perl -pi.bak -e 'BEGIN{$num=1} s/(playOrder=.)\d*/sprintf("%s%d",$1,$num++)/e' toc.ncx
Comments
![RSS Feed for Comments RSS Icon](/images/rss.png?v3)
perl -pi.bak -e 'BEGIN{$num=1} s/(playOrder=.)\d*/sprintf("%s%d",$1,$num++)/e' toc.ncx