in reply to Re^3: How to extract a pattern in Perl regex?
in thread How to extract a pattern in Perl regex?
Mojo::DOM makes parsing fun and simple.
Agreed, and ojo makes it even more fun ;-)
$ perl -Mojo -e 'say g("https://perlmonks.org")->dom->at("title")->all +_text=~s/^\s+|\s+$//gr' PerlMonks - The Monastery Gates
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: How to extract a pattern in Perl regex?
by marto (Cardinal) on May 02, 2020 at 09:26 UTC | |
by haukex (Archbishop) on May 02, 2020 at 09:31 UTC | |
by marto (Cardinal) on May 02, 2020 at 11:08 UTC | |
by haukex (Archbishop) on May 02, 2020 at 11:53 UTC | |
by marto (Cardinal) on May 02, 2020 at 11:57 UTC |