In code, replace an array subscript [...] with [n++] |
Search: \[[^]]+\] |
Replace: [n++] |
PERL: s/\[[^]]+\]/[n++]/g |
In an HTML doc, replace certain file references in URLs |
Search: ys97_(\d\d)/ |
Replace: ys97_\1/index.html |
PERL: s#ys97_(\d\d)/#ys97_\1/index.html# |
Again in an HTML doc, replace certain paths in URLs |
Search: ([^/])\.\./graphics |
Replace: \1../../latex-graphics |
PERL: s%([^/])\.\./graphics%\1../../latex-graphics% |