Skip to content

Regular Expressions

Philip Ford edited this page Apr 23, 2017 · 6 revisions
def result = 'abc' =~ /[a-z]+/
result.matches()

Creating a Regular Express

Surround a string with forward slashes (/) to make it a pattern, just like in JavaScript.

Operators

Clone this wiki locally