I'm doing Weekly Challenge #54. The tool mastery for RegEx shows that \u{2} will extract 2 uppercase letters for state. I can't get it to work. In the string
11 North Warren Circle Lisbon Falls ME 04252
It gives me No not ME
Any ideas?
Thanks,
Troy
Solved! Go to Solution.
Thanks for the reply @christine_assaad .
I did try that and it works perfectly if there is a Zip at the end but not all rows have a Zip at the end so it returns Null.
I was hoping to do it all in one go but looks like I'll do it in steps.
Thanks,
Troy
It seems like the first example in the RegEx Tool Mastery article works if you use the entire RegEx, not just one section of the RegEx.
Here's the documentation from the the Boost-Extended Format String Syntax Guide
\u | Causes the next character to be outputted, to be output in upper case. |
\U | Causes all subsequent characters to be output in upper case, until a \E is found. |
But I don't think the explanation "\u{2} will extract 2 uppercase letters for state" is correct.
Chris