You searched for the word(s):
Showing page 1 of 2 (13 total posts)
< 1 second(s)
yes, I put the wrong string for testing. and I have another problem here see the following regex:
const wregex roadPat(L"\\s*\\bStreet|St|Avenue|Ave|Wharf|Boulevard|Blvd|Highway|Hwy|Road|Rd|Lanes|Gardens?|Gate|Place|Terrace|Rue|Bd|Harbour|Way|Common|Drive|Circle|Freeway|Loop|Expressway|Expy\\b\\s*", regex_constants::icase);
I set up a ...
hi, I have a regex that matches strings like:
wstring wstrTxt34 = L"5.2 miles from destination ";
const wregex distPat(L"\\s*\\d+\\.?\\d*\\s*miles from destination\\s*");
const wregex distPat2(L"\\s*\\d+\\.?\\d*\\s*miles\\s+(from destination)?\\s*");
hi, susan, your advice has been very helpful, thx.
hi, I need to validate UK Postcode in my project, so I found some regex in
and I tried two here:
const wregex ...
Hi, thx for your help. I work around the question by search for the following regex:
const wregex prPattern2(L"\\s*(?:\\$|£)\\s*\\d*\\.?\\d*\\s*", regex_constants::icase);
which means as long as there exist a price (containing the above regex) in a string, that string will be identified as "price"; Now, I met another ...
hi, Susan, your reply is very helpful! I also wonder what if I want to match strings like:
wstring wstrTxt13 = L"SALE! Allegro Price: $5.50";
wstring wstrTxt14 = L"$9.98 DVD-Video";
that I tried
const wregex prPattern2(L"\\s*(\\$|£)\\s*\\d*\\.?\\d*\\s*", regex_constants::icase);
that as long as the price ...
hi, i got a new problem here, when i tried,
const wregex prPattern(L"^\\s*(?:(?:\\b(?:GBP|USD|Price:)\\b)|\\$|£)\\s*(\\$|£)?\\s*\\d*\\.?\\d*$", regex_constants::icase);
const wregex prPattern2(L"^\\s*\\bPrice:\\b\\s*(\\$|£)?\\s*\\d*\\.?\\d*$", regex_constants::icase);
wstring wstrTxt9 = ...
hi,all,I need to process some strings, that for each string, I need to find some non-letter, non-digit symbols/splitters, and then use the them as separators to divide the string, e.g. I have a string"Accent Plates by Lenox, Tuxedo", the comma "," is treated as such a symbol, and I need to use it as a separator to divide ...
thank you, the new regex works well so far.
hi, thx for the help, Susan, there is another problem here, the regex:
works for strings like "USD 46.54" or "GBP 46.54", but it failed on "$ 46.54" and "£ 46.54", whats going on?