1+ more replies (not shown)
~83 more replies (not shown)

The regular expression language is relatively small and restricted, so not all possible string processing tasks can be done using regular expressions.

in fact regex itself can only perform matching. matching html with regex is not very far from performing the complex stateful substitutions that are commonplace with classical regex APIs