Default

regexp

regexp "[0-9]" |type?
; returns native

regexp//is-match

regexp "[0-9]" |is-match "5"
; returns 1
regexp "[0-9]" |is-match "a"
; returns 0

regexp//submatch?

regexp "x([0-9]+)y" |submatch? "x123y"
; returns "123"

regexp//submatches?

regexp "x([0-9]+)y" |submatches? "x123y x234y"
; returns { "123" }

regexp//submatches\all?

regexp "x([0-9]+)(y+)?" |submatches\all? "x11yy x22"
; returns { { "11" "yy" } { "22" "" } }

regexp//find-all

regexp "[0-9]+" |find-all "x123y x234y"
; returns { "123" "234" }

regexp//match?

regexp "[0-9]+c+" |match? "aa33bb55cc"
; returns "55cc"

regexp//replace-all

regexp "[0-9]+" |replace-all "x123y x234y" "XXX"
; returns "xXXXy xXXXy"