bill b has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I'm polishing man page output from pandoc (google it). I need to clean up cruft that occurs around the man page bullet macros and replace it with \(bu (bullet macro syntax). Here's what I have:
The matching works perfectly, but no matter how much I play with the substitution string, I always get (bu without the initial backslash. I've tried /\\(bu/, /\\\(bu/, /Q and /E, but nothing works. I always get (bu in the output.s/T\}\@T.*T\}\@T\{/\(bu/sm;
TIA, Bill
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: special character substitution
by choroba (Cardinal) on Jun 10, 2013 at 19:57 UTC | |
by bill b (Initiate) on Jun 10, 2013 at 20:16 UTC | |
Re: special character substitution
by AnomalousMonk (Archbishop) on Jun 10, 2013 at 22:08 UTC |
Back to
Seekers of Perl Wisdom