We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f054887 commit 362bdccCopy full SHA for 362bdcc
pattern-matching/src/test/scala/scalaexamples/patternmatching/RegexMatchingTest.scala
@@ -33,7 +33,7 @@ class RegexMatchingTest extends EmptyTest {
33
def matchFirstPartOfString {
34
val start = "This is"
35
val string = start + " the string to find a match for."
36
- val matchRegex = """""".r
+ val matchRegex = """^(\w+).*?(\w+)$""".r
37
38
val mathedElement = string match {
39
// Insert you match statement here
0 commit comments