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