Using RegEx to convert a collection of city names alternatively to upper and lower case using built in regex functions.
For eg if the collection has city names Bangalore, Chennai and Hyderabad, i want the output as:
BaNgAlOrE
ChEnNaI
HyDeRaBaD
using only regex functions and no character arrays