-
-
Save gregorydickson/ec61ff06a7908713b1726916f4b77a26 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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