/ Published in: ActionScript 3
. must be escaped using \ . It means something in regexp
Expand |
Embed | Plain Text
var pat1:RegExp = /\./gi; var s:String = "12.345.67.89"; trace(s.replace(pat1,",")) //12,345,67,89
You need to login to post a comment.
