advanced code snippet search
hansamann on 02/02/07
regex regular expressions groovyseries
02/02/07 10:23am02/02/07 10:21am
4 people have marked this snippet as a favorite
//examples for match operator - match is more restrictive than find!def line = "This is a test line"assert line ==~ /This is a test line/line -= " line"assert !(line ==~ /This is a test line/)def booleanValue = (line ==~ /This is a test/)assert booleanValue == true
Report this snippet
You need to login to post a comment.