I need to allow white spaces between words but not allow white spaces between characters. for Example - "ABC X", "ABC XC" are allowed but "C X", "ABC X C" are not.
Requirement is "No letter followed by space followed by letter"
This needs to work for Spanish characters as well.
Should work in - Java and Javascript I've seen quite few questions (like regular expression to allow spaces between words) but they either allow space or not allow space anywhere string.
I tried with - > /(.)[^ ](.){1,}/
and (\S\s+\S)
I'm new to regEx and not sure how to proceed. Will be great help if somebody can provide answer or some hint to achieve this.
Thanks, YK