SIAMFLEX

My flex project

การ split และ replace

| Filed under Adobe Flex Builder

import mx.utils.StringUtil;

 

var news:String = l_deposit_allbalance.text;
var a:Array = news.split(“.”);
var myPattern:RegExp = /,/;
news = a[0].replace(myPattern, “”);

 

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>