Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id B1D07166D3D for ; Tue, 25 Jul 2017 16:36:45 +0200 (CEST) Received: (qmail 15879 invoked by uid 500); 25 Jul 2017 14:36:44 -0000 Mailing-List: contact users-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@flex.apache.org Delivered-To: mailing list users@flex.apache.org Received: (qmail 15866 invoked by uid 99); 25 Jul 2017 14:36:44 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Jul 2017 14:36:44 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 15AC1C0096 for ; Tue, 25 Jul 2017 14:36:44 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.965 X-Spam-Level: * X-Spam-Status: No, score=1.965 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_NONE=-0.0001, SPF_NEUTRAL=0.652, URI_HEX=1.313] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id x7bgky1--mzC for ; Tue, 25 Jul 2017 14:36:43 +0000 (UTC) Received: from mwork.nabble.com (mwork.nabble.com [162.253.133.43]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 029EB5FBEA for ; Tue, 25 Jul 2017 14:36:42 +0000 (UTC) Received: from mjoe.nabble.com (unknown [162.253.133.57]) by mwork.nabble.com (Postfix) with ESMTP id 59051560A91B4 for ; Tue, 25 Jul 2017 07:36:42 -0700 (MST) Date: Tue, 25 Jul 2017 07:16:21 -0700 (PDT) From: jfb To: users@flex.apache.org Message-ID: <1500992181721-15486.post@n4.nabble.com> Subject: Reg Exp help MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi All, I am trying to replace all commas with nothing from a string. var cText:String = "36,000,000"; var regEx:RegExp = /,/g; cText = cText.replace(regEx,""); The result for cText is 36000,000. It is only replacing the first comma. Why the global (g) option is not working? Thanks ! -- View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Reg-Exp-help-tp15486.html Sent from the Apache Flex Users mailing list archive at Nabble.com.