Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Parsing a HTML page I have the contents of a set of paragraphs, the general form:
Right now I'm capturing the three variables I need using index & substr a bunch but was hoping for a cleaner, more perlish solution. TIAInteger. Text - or – more text e.g. 123. The quick brown fox - Jumps over the 123. The quick brown fox – Jumps over the 456. The lazy dog - Barked & wagged results $num = 123; $text1 = 'The quick brown fox'; $text2 = 'Jumps over the';
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Parsing/regex help required
by roboticus (Chancellor) on Sep 27, 2021 at 13:32 UTC | |
by Anonymous Monk on Sep 27, 2021 at 14:02 UTC | |
by kcott (Archbishop) on Sep 28, 2021 at 07:50 UTC | |
by Marshall (Canon) on Sep 28, 2021 at 02:07 UTC | |
Re: Parsing/regex help required
by Fletch (Bishop) on Sep 27, 2021 at 13:21 UTC | |
by Anonymous Monk on Sep 27, 2021 at 13:49 UTC | |
by Fletch (Bishop) on Sep 27, 2021 at 19:50 UTC | |
by AnomalousMonk (Archbishop) on Sep 27, 2021 at 20:01 UTC |
Back to
Seekers of Perl Wisdom