Think about Loose Coupling | |
PerlMonks |
Re: Removing with regexpsby roboticus (Chancellor) |
on Apr 21, 2012 at 17:58 UTC ( [id://966395]=note: print w/replies, xml ) | Need Help?? |
Looking at your data, it looks like you have a word "type" followed by a list of numbered definitions. I think I'd split each record apart at the numbers, discarding the numbers (since otherwise you'll get gaps in numbering anyway). Then I'd filter out the ones I don't want. It goes like this:
When I run it, I get this:
...roboticus When your only tool is a hammer, all problems look like your thumb.
In Section
Seekers of Perl Wisdom
|
|