![]() Union, establish justice, ensure domestic tranquility, provide for theĬommon defence, promote the general welfare, and secure the blessings WE, the PEOPLE of the UNITED STATES, in order to form a more perfect The sample that I'm testing this on is the U.S. What is a better way to do this? I tried negative lookahead expressions with no luck but I'm not very strong at writing them. Then I had to go through and find and replace all suspected Roman numerals. I used this to convert to lowercase: (\u ) Then convert all Roman numerals back to uppercase. ![]() The only way I found was to convert all uppercased words that are followed by a space, comma, or period, as well as hyphenated words into lowercase. ![]() I'm trying to write a single regular expression to convert all uppercase words to lowercase while excluding uppercase Roman numerals from being converted.
0 Comments
Leave a Reply. |