SitePoint Sponsor |
|
User Tag List
Results 1 to 2 of 2
-
Jul 14, 2007, 09:29 #1
Javascript replace with Unicode character
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
-
Jul 14, 2007, 13:26 #2
- Join Date
- Jun 2004
- Location
- Copenhagen, Denmark
- Posts
- 6,157
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Code:"[aaa:giải trí][bbb:thử nghiệm]".replace(new RegExp("giải trí"), "æblegrød")
Bookmarks