Ban
Member since Feb 17, 2010
- Profile: /members/5463-ban.htm
- Comments: 5
Recent Blog Comments By Ban
-
Ask Ben: Javascript String Replace Method
Posted on Feb 24, 2010 at 4:49 AM
@wize thanks for your inputs....... read more »
-
Ask Ben: Javascript String Replace Method
Posted on Feb 23, 2010 at 1:07 AM
@Wize, can you pls let me know the reverse way.. excluding last 4....... read more »
-
Ask Ben: Javascript String Replace Method
Posted on Feb 22, 2010 at 9:15 AM
@Wize,@Ben Here is my requirement... i would need to have the data in the form of $$$$$$$$$$$$$$$$1234 i.e i would need to replace all the numbers except last 4.(in total 16 numbers).. Thanks in advance... read more »
-
Ask Ben: Javascript String Replace Method
Posted on Feb 17, 2010 at 7:37 AM
@bruce, i agree with you on that.. In the option prescribed by you i tried to loop through the characters which i want to replace with special character.. but in that case am getting some js error. var tempstring=""; for (var i = 0; i < data.length; i++) { ... read more »
-
Ask Ben: Javascript String Replace Method
Posted on Feb 17, 2010 at 6:41 AM
Hi, I would need to replace 12 out of 16 characters of a numerical string with a special character. tried with the following but it didnt work. string.replace(/^([0-9]+)([0-9]{4})$/g,'$') can some help me on this... read more »