I have this string:
Miami, Florida
I would like to find a regex to help defect to see if this string contains ASCII code.
I have tried these regex \\p{ASCII}, ^[\\u0000-\\u007F]*$, ^\p{ASCII}*$, \A\p{ASCII}*\z, and /^[\\x00-\\x7F]+$/ but none are working for me.
Ideally, the regex would return (examples):
Miami, Florida- trueMiami, Florida- falseMiami Florida- falseMiami,Florida- false
Once I have detected the string has ASCII code, how would I be able to convert the string to Miami, Florida?
