Question #157: Which of the following text represent the regular expression [A-Z][a-z]* ([ ][A-Z] [a-z]*)* [A-Z][A-Z]?
Options:
- Bangalore KR
- Palo Alto CA
- New Delhi ND
- All of the above
Solution:
This regular expression is a more generic form of the earlier regular expression (Question 37) in the sense that the first city name can have multiple words starting from capital letter and then followed by a word of two capital letters. The correct answer is option 4.