Here's my string:
[aaa:giải trí][bbb:thử nghiệm]
so, how can i replace "giải trí" by other string ?
i used \w , but nothing happend
| SitePoint Sponsor |
Here's my string:
[aaa:giải trí][bbb:thử nghiệm]
so, how can i replace "giải trí" by other string ?
i used \w , but nothing happend
Javascript uses unicode internally, so the only thing to watch out for, is that data gets transported correctly into javascript. Once it's in, all characters are equal.Code:"[aaa:giải trí][bbb:thử nghiệm]".replace(new RegExp("giải trí"), "æblegrød")
Bookmarks