skip to main
|
skip to sidebar
.Net Technical Blog
Friday, January 4, 2008
Javascript: Regular Expression to replace '-' to ','
function fnReplace()
{
var rExp = /-/gi;
var strX = '1,2,3,5-6,4-3-5-4';
alert(strX.replace(rExp,','));
}
No comments:
Post a Comment
Newer Post
Home
Subscribe to:
Post Comments (Atom)
Balasubramaniyam Blog
BalasBlog
Blog Archive
►
2011
(2)
►
April
(2)
▼
2008
(6)
▼
January
(6)
Design Patterns
No title
Learning Regular Expression Syntax
Javascript : Allow only Numeric in Textbox
Convert string to TitleCase
Javascript: Regular Expression to replace '-' to ','
About Me
Mohan Kumar V
View my complete profile
No comments:
Post a Comment