- update to 3.10:
* With -P, \d now matches only ASCII digits, regardless of PCRE options/modes. The changes in grep-3.9 to make  and \w work properly had the undesirable side effect of making \d also match e.g., the Arabic digits: ٠١٢٣٤٥٦٧٨٩. With grep-3.9, -P '\d+' would match that ten-digit (20-byte) string. Now, to match such a digit, you would use \p{Nd}. Similarly, \D is now mapped to [^0-9]. OBS-URL: https://build.opensuse.org/package/show/Base:System/grep?expand=0&rev=132
This commit is contained in:
12
grep.changes
12
grep.changes
@@ -1,3 +1,15 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 30 07:41:18 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 3.10:
|
||||
* With -P, \d now matches only ASCII digits, regardless of
|
||||
PCRE options/modes. The changes in grep-3.9 to make and \w
|
||||
work properly had the undesirable side effect of making \d
|
||||
also match e.g., the Arabic digits: ٠١٢٣٤٥٦٧٨٩.
|
||||
With grep-3.9, -P '\d+' would match that ten-digit (20-byte)
|
||||
string. Now, to match such a digit, you would use \p{Nd}.
|
||||
Similarly, \D is now mapped to [^0-9].
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 6 09:28:35 UTC 2023 - Andreas Schwab <schwab@suse.de>
|
||||
|
||||
|
Reference in New Issue
Block a user