Details
-
Documentation
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.0.7
-
None
-
None
Description
The 3.0.7 Groovy documentation 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/`.