Hello everyone,
I have the following replace function:
item.value = item.value.replace(/[.](\s{1,2})?/g, ".").replace(/[.]/g, ". ");
Ok. My problem is and I'm not really sure where to start is that I want to only replace the full stops that have a Alphabetic character preceding it.
Any...
Hi all,
I would love to work aboard for a few years, and I'm thinking about applying for Web Development jobs in America.
Whats the best way to approach this?
Just before anyone asks I'm British, Male, 23. Have been in the web development industry for 7 years now.
I'm not looking for an...
I have the following javascript:
str = item.value;
var pattern1 = /, /g;
var pattern2 = /,/g;
str = str.replace(pattern1, ",");
str = str.replace(pattern2, ", ");
item.value = str;
The problem is... each replace works, but not together.
The code works on a textarea and automatically ads a...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.