As you all know, I'm writing a regex book. In an effort to get all the chapters up to a similar page count, I'm looking for example programs to use throughout the chapter to show how a concept plays in the actual code.
In particular, I need code that shows examples of:
- ^ and $ under the influence of /m
- global matching -- /g, /gc, \G, tricks with pos()
- substitution
Contributions to the book will be met with the proper acknowledgements (just as blakem and Erudil and merlyn -- they're in my book).
_____________________________________________________
Jeff[japhy]Pinyan:
Perl,
regex,
and perl
hacker.
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;
Back to
Meditations