klattimer has asked for the wisdom of the Perl Monks concerning the following question:
The regular expression is supposed to take in a multiline string and strip out any tabs found in the string using this regular expression
as i understand it tr transposes the first chunk to the second chunk in this case \t (tab) to nothing. and sm will process the string as a multiline string.$actionData =~ tr/\t//sm;
Thanks in advance
Karledited by ybiC: retitle from "Problematic regular expression"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(jeffa) Re: Strip tabs from multi-line string
by jeffa (Bishop) on Jul 28, 2003 at 14:57 UTC | |
|
Re: Strip tabs from multi-line string
by diotalevi (Canon) on Jul 28, 2003 at 14:58 UTC | |
|
Re: Strip tabs from multi-line string
by Lachesis (Friar) on Jul 28, 2003 at 15:04 UTC | |
|
OT Sidebar, was Re: Strip tabs from multi-line string
by RMGir (Prior) on Jul 28, 2003 at 16:11 UTC | |
|
Re: Strip tabs from multi-line string
by klattimer (Initiate) on Jul 28, 2003 at 15:01 UTC |