Регулярные выражения
Функции
FindFirstRegExp(str src, str re) arr.str
arr.str a &= FindFirstRegExp(`This45i33s a isi777s inis1i2sg`, `is(\d*)i(\d+)s`)
// a = {`is45i33s`, `45`, `33`}FindRegExp(str src, str re) arr.arr.str
arr.arr.str a &= FindRegExp(`My email is [email protected]`, `(\w+)@(\w+)\.(\w+)`)
// a = { { `[email protected]`, `xyz`, `example`, `com`} }
a &= FindRegExp(`This is a test string`, `i.`)
// a = { { `is` }, {`is`}, {`in`} }Match(str s, str re) bool
RegExp(str src, str re) str
ReplaceRegExp(str src, str re, str repl) str
Last updated
Was this helpful?