Generally, no.
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
| [reply] [Watch: Dir/Any] [d/l] |
Generally yes, at least since Perl regex are turing complete
The real question should be: Is it possible with a simple regex?
Answer: No.
A regex parsing HTML wouldn't be less complex than a full scale HTML parser and consist of various nested sub expressions.
Certainly not a one liner.
| [reply] [Watch: Dir/Any] |
| [reply] [Watch: Dir/Any] |
| [reply] [Watch: Dir/Any] |
| [reply] [Watch: Dir/Any] [d/l] |
> here at the monastery only tybalt89 owns a special permission to deal with HTML or XML using regular expressions
Agreed that tybalt89 has earned it.
To nitpick though, I think TheDamian is also worthy of this special permission.
The PPR module provides a single regular expression that defines a set of independent subpatterns suitable for matching entire Perl documents
-- from PPR by TheDamian (as if you couldn't guess ;-)
See also these comments by kcott and haukex, discussing the differences between PPR and PPI.
| [reply] [Watch: Dir/Any] |
| [reply] [Watch: Dir/Any] |