Issue Details (XML | Word | Printable)

Key: GROOVY-1698
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Jochen Theodorou
Reporter: Graeme Rocher
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
groovy

No way to escape the / character in Groovy regex

Created: 07/Feb/07 05:00 AM   Updated: 21/Jun/07 07:05 AM
Component/s: parser
Affects Version/s: 1.0
Fix Version/s: 1.1-beta-2

Time Tracking:
Not Specified



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Paul King added a comment - 21/Jun/07 06:57 AM
I applied a fix for this. For the record, old behaviour was:

/ was only allowed if preceded by an odd number of \ characters. All characters were preserved.
\ at the end of a line escaped the end of line (i.e. acts as continuation character) so long as it wasn't preceded by an odd number of \ characters.

New behaviour is:

\ escapes end of line and / in which case the \ is removed. In all other cases, \ is preserved.


Paul King added a comment - 21/Jun/07 07:05 AM
Correct fix version