same (Sam Eaton)
- Login: same
- Registered on: 01/06/2016
- Last sign in: 10/12/2016
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 0 | 0 |
Activity
01/07/2016
-
07:59 AM Ruby Bug #4044: Regex matching errors when using \W character class and /i option
- Hmmm... When I try it with any other combination it never matches. Its only when I add the /i then it doesn't matter which case of "f"
~~~
"ffffFFFF".scan(/[\W]/) # []
"ffffFFFF".scan(/[\W]/i) # ["ff", "ff", "FF", "FF"]
"ff...
01/06/2016
-
11:26 PM Ruby Bug #4044: Regex matching errors when using \W character class and /i option
- I am experiencing this issue with Ruby 2.3.0 on both OS X 10.10.5 and Ubuntu 14.04.3. When i have a double "f" i get a regex match with the non-word symbol and case insensitivity.
~~~
/[\W]/ =~ "00FF00" # nil
/[\W]/i =~ "00FF00...