You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Alex Fredrickson (Jira)" <ji...@apache.org> on 2021/02/01 18:29:00 UTC

[jira] [Created] (GROOVY-9925) Groovy match operator documentation should contain real examples and slashy strings reminder

Alex Fredrickson created GROOVY-9925:
----------------------------------------

             Summary: Groovy match operator documentation should contain real examples and slashy strings reminder
                 Key: GROOVY-9925
                 URL: https://issues.apache.org/jira/browse/GROOVY-9925
             Project: Groovy
          Issue Type: Documentation
            Reporter: Alex Fredrickson


The [3.0.7 Groovy documentation|[https://docs.groovy-lang.org/latest/html/documentation/#_match_operator]] could be more clear on regex usage with match operators, particularly:
 # It would be helpful to note here that slashy strings are *required* for the match operator to work.  `foo ==~ "^\s+$"` will never work.  I know there's a section dedicated to slashy strings; it would be helpful to have a footnote here.
 # This section could benefit from a better example than `{{m = text ==~ /match/}}`.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)