Django has asked for the wisdom of the Perl Monks concerning the following question:
Dear monks,
I recently found out, that \s, like any other of those metachars, can't be used s//here/, since it represents a character class. So how can I put space s//there/x? A literal space is discarded by /x. I could use a variable like $Space or play around with chr 32, but is there a straighter solution?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Space and the /x modifier
by spurperl (Priest) on Aug 29, 2002 at 08:11 UTC | |
|
Re: Space and the /x modifier
by sauoq (Abbot) on Aug 29, 2002 at 07:52 UTC | |
|
Re: Space and the /x modifier
by Zaxo (Archbishop) on Aug 29, 2002 at 07:54 UTC | |
|
Re: Space and the /x modifier
by PodMaster (Abbot) on Aug 29, 2002 at 11:21 UTC | |
by Django (Pilgrim) on Aug 29, 2002 at 11:54 UTC |