General

Profile

jhriggs (Jim Riggs)

  • Login: jhriggs
  • Registered on: 09/11/2017
  • Last sign in: 09/11/2017

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 1 1

Activity

09/15/2017

01:12 PM Ruby Bug #13892: Matching the end of a string followed by an empty greedy regex and a word boundary (.*\b) fails in all versions >= 1.9
@naruse, k-takata -
Testing with Onigmo, Oniguruma, and php's mb_ereg() this case does indeed fail to match, though based on my understanding of this particular pattern (and all of the other regex implementations cited), it should mat...
jhriggs (Jim Riggs)
12:07 PM Ruby Bug #13892: Matching the end of a string followed by an empty greedy regex and a word boundary (.*\b) fails in all versions >= 1.9
@naruse -
You might be right. I (shamefully) did not investigate what regex library Ruby is using under the hood. Sorry.
I will do some testing with the upstream code to see if the problem lies there or in Ruby. If there, I will cr...
jhriggs (Jim Riggs)

09/12/2017

01:02 PM Ruby Bug #13892 (Closed): Matching the end of a string followed by an empty greedy regex and a word boundary (.*\b) fails in all versions >= 1.9
This is a very specific regex failure that occurs when the final character of the string is matched by the end of a pattern that terminates with `.*\b`. For example:
~~~ ruby
"abc" =~ /c.*\b/
"abc" =~ /abc.*\b/
"abc" =~ /\b.*abc.*\...
jhriggs (Jim Riggs)

Also available in: Atom