Skip to content

Commit 362bdcc

Browse files
committed
Regex should not have been removed.
1 parent f054887 commit 362bdcc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pattern-matching/src/test/scala/scalaexamples/patternmatching/RegexMatchingTest.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class RegexMatchingTest extends EmptyTest {
3333
def matchFirstPartOfString {
3434
val start = "This is"
3535
val string = start + " the string to find a match for."
36-
val matchRegex = """""".r
36+
val matchRegex = """^(\w+).*?(\w+)$""".r
3737

3838
val mathedElement = string match {
3939
// Insert you match statement here

0 commit comments

Comments
 (0)