I'm looking for a Regex to test that a string contains both upper case and lower case letters. I found a few threads on this but and they suggest using a forward lookup, but I can't seem to make it fit in with the rest of my expression, I'm looking to test for this:
<b>James Smith (ecg)</b>
But exclude this (the (ecg) is always lower case):
<b>JAMES SMITH (ecg)</b>
So far I have this:
<b>[A-z\s\W]+(\(ecg\))?\W?<\/b>
Which works but will also match if it's all in caps or all in lower case. I tried this but it's still matching everything:
<b>(.*(?=.*[a-z])(?=.*[A-Z]).*)[A-z\s\W]+(\(ecg\))?\W?<\/b>