Elijah has asked for the wisdom of the Perl Monks concerning the following question:
Does anyone have a nifty way of using perl regexp to filter man page special characters such as ^H (CTRL-H) and to turn output such as _O_P_T_I_O_N into OPTION?
Now mind you the option above with underscores also has control characters in them but I could not post them here without screwing up the entire post. I mention this because a simple s/\_//g; will not do.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Filter man page control characters?
by Thelonius (Priest) on May 18, 2005 at 04:42 UTC | |
by Elijah (Hermit) on May 18, 2005 at 04:50 UTC | |
by Thelonius (Priest) on May 18, 2005 at 05:10 UTC | |
Re: Filter man page control characters?
by mattk (Pilgrim) on May 18, 2005 at 06:09 UTC | |
Re: Filter man page control characters?
by Zaxo (Archbishop) on May 18, 2005 at 04:46 UTC | |
Re: Filter man page control characters?
by thcsoft (Monk) on May 18, 2005 at 04:46 UTC | |
Re: Filter man page control characters?
by TheStudent (Scribe) on May 18, 2005 at 04:50 UTC | |
by Elijah (Hermit) on May 18, 2005 at 04:51 UTC | |
Re: Filter man page control characters?
by runrig (Abbot) on May 18, 2005 at 16:51 UTC |
Back to
Seekers of Perl Wisdom