I want to delete all the characters except the last 3 letters that are capitalized. And another thing, how do I do several regex together?
I want to delete all the characters except the last 3 letters that are capitalized. And another thing, how do I do several regex together?
The syntax depends on the regex implementation you are using. But an example using the syntax of js:
str.replace(/^.*([A-Z])[^A-Z]*([A-Z])[^A-Z]*([A-Z])[^A-Z]*$/, '$1$2$3')