|
|
| There's more than one way to do things | |
| PerlMonks |
Re2: Help me write a good reg-exp for this textby dragonchild (Archbishop) |
| on Sep 05, 2003 at 12:19 UTC ( [id://289259]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
That doesn't work. Many of the text descriptions have spaces in them, plus there's spaces at the beginning of most of the lines.
As this is fixed length, use unpack. Now, you're going to have to also use some logic if you care about the indenting stuff to make sure that you don't keep that whitespace at the beginning of your description. If you don't, it's easy enough to strip off the indenting whitespace. To get what you exactly wanted, do something like:
------ The idea is a little like C++ templates, except not quite so brain-meltingly complicated. -- TheDamian, Exegesis 6 Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||