I want to extract 'Physics' from the text below, But I am getting value 'None'.
Can you please explain what is the error in my code?
My logic for regex was as follows
--> ^[A-Z] - for matching any word's first character starting with CAPITAL LETTER.
--> [a-z]+ - for matching any subsequent 1 or more characters
import re
text = "111 PCM Physics"
print(re.search(r'^[A-Z][a-z]+', text))