The Regex addon adds support for Perl regular expressions using the PCRE library by Philip Hazel.
Io> re := "is.*a" asRegex
Io> "This is a test. This is also a test." \
matchesOfRegex(" is[^.]*a") replaceAllWith(" is not a")
==> "This is not a test. This is not a test.
Io> "11aabb" matchesOfRegex("aa*")
==> list("a", "a")
Io> re := "(wom)(bat)" asRegex
Io> "wombats are cuddly" matchesOfRegex(re) replaceAllWith("$2$1!")
==> batwom!s are cuddly
pcre
should be installed and foundable in your system. Then:
eerie install https://github.com/IoLanguage/Regex.git