You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 4874 Reporter: vbigiani Assigned to:@xavierleroy Status: closed (set by @xavierleroy on 2012-03-24T14:01:03Z) Resolution: fixed Priority: normal Severity: minor Version: 3.11.1 Fixed in version: 3.12.0+dev Category: ~DO NOT USE (was: OCaml general) Monitored by: vbigiani
Bug description
The digits (0-9) match againt \b, as can be demonstrated by the following snippet:
let reg = Str.regexp "a\b";;
Str.string_match reg "a1" 0;;
which should return false, but instead returns true (because 1 is considered a word boundary).
The text was updated successfully, but these errors were encountered:
Changed the notion of word constituent in Str so that they include digits 0-9 and the _ character in addition to letters. This is more consistent with other regexp packages (Perl, Python, egrep).
Original bug ID: 4874
Reporter: vbigiani
Assigned to: @xavierleroy
Status: closed (set by @xavierleroy on 2012-03-24T14:01:03Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 3.11.1
Fixed in version: 3.12.0+dev
Category: ~DO NOT USE (was: OCaml general)
Monitored by: vbigiani
Bug description
The digits (0-9) match againt \b, as can be demonstrated by the following snippet:
let reg = Str.regexp "a\b";;
Str.string_match reg "a1" 0;;
which should return false, but instead returns true (because 1 is considered a word boundary).
The text was updated successfully, but these errors were encountered: