Skip to content

Instantly share code, notes, and snippets.

@gregorydickson
Last active November 15, 2017 19:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gregorydickson/ec61ff06a7908713b1726916f4b77a26 to your computer and use it in GitHub Desktop.
Save gregorydickson/ec61ff06a7908713b1726916f4b77a26 to your computer and use it in GitHub Desktop.
def aMultiLineString = '''\
A multiline string can be created with three single quotes,
and is a Java String with some methods bolted on.
'''
aMultiLineString.eachLine {
if (it =~ /Java/) {
println it
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment