I am new to regex in java script. I want to create a regular expression that checks if a string contains only characters between az and AZ with any layout and cancels the words. I tried as below:
"Hello%20Bye".split(/([^a-z|A-Z|\.])/).reverse().join('');
I need the output to look like this: Bye%20Hello
Any help?
source
share