package {
        import flash.display.Sprite;

        public class regExp extends Sprite
        {
                public function regExp()
                {
                        var asset:String = new String;
                        asset = "Tissue/Cell";
                        var pattern:RegExp = /\//g;
                        asset.replace(pattern, "");
                        trace (asset + " ASSET " + pattern );
                }
        }
}

Using the above code my trace is:

Tissue/Cell ASSET /\//g

In perl the forward slash would be gone.

Any help appreciated.

Reply via email to