Sunday, 18 August 2013

Consecutive uppercase letters regex

Consecutive uppercase letters regex

I'm trying to use regex to find 3 consecutive uppercase letters within a
string.
I've tried using
\b([A-Z]){3}\b
as my regex which works to an extent.
However this only returns strings by themselves. I also want it to find 3
consecutive uppercase letters nested within a string. i.e thisISAtest
Any help would be appreciated. Thanks

No comments:

Post a Comment