Boost logo

Boost Users :

Subject: [Boost-users] Xpressive regex superscript 2 and 3 parsed as plain digits
From: Mia (mia_at_[hidden])
Date: 2015-10-15 18:44:34


Help pleaseI am using xpressive for text processing with regexes.Microsoft
Visual C++ 13.0 on a windows 10 laptop, boost version 1_59_0 (and
lib64-msvc-12.0 downloaded from sourceforge) , locale is en_US.UTF-8 .my
regular expressions for catching any and all digits :wsregex
any_number_regex = wsregex::compile(L"^(.*\\D)?(\\d+)(\\D.*)?$");Looks like
it recognizes the superscript 2 and superscript 3 as plain “digits”all
other superscript digits are not caught by this regex.examples:πr² 234³is
this intentional?is this a bug?(I know I can change the regex to catch
[0-9]+, this regex just one of many I use in my software!)thank youMia

--
View this message in context: http://boost.2283326.n4.nabble.com/Xpressive-regex-superscript-2-and-3-parsed-as-plain-digits-tp4680973.html
Sent from the Boost - Users mailing list archive at Nabble.com.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net