^$ should not match final line break #67

Open
opened 2021-05-08 14:03:03 +00:00 by benibela · 0 comments
benibela commented 2021-05-08 14:03:03 +00:00 (Migrated from github.com)

Here ^$ matches:

f := TFLRE.Create('^$', [rfMULTILINE]);
f.ExtractAll('abcd'+LineEnding+'defg'+LineEnding,matches) ;
writeln(length(matches))

but "on both Java and .NET, there is not considered to be a zero-length line between a final newline character and the end of the string, so if $in is:" (https://www.w3.org/Bugs/Public/show_bug.cgi?id=4543)

Here `^$` matches: f := TFLRE.Create('^$', [rfMULTILINE]); f.ExtractAll('abcd'+LineEnding+'defg'+LineEnding,matches) ; writeln(length(matches)) but "on both Java and .NET, there is not considered to be a zero-length line between a final newline character and the end of the string, so if $in is:" (https://www.w3.org/Bugs/Public/show_bug.cgi?id=4543)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
BeRo1985/flre#67
No description provided.