Return-Path: X-Original-To: apmail-flex-users-archive@www.apache.org Delivered-To: apmail-flex-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 88FF317F54 for ; Fri, 8 May 2015 05:28:48 +0000 (UTC) Received: (qmail 11407 invoked by uid 500); 8 May 2015 05:28:48 -0000 Delivered-To: apmail-flex-users-archive@flex.apache.org Received: (qmail 11373 invoked by uid 500); 8 May 2015 05:28:48 -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 11361 invoked by uid 99); 8 May 2015 05:28:48 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 May 2015 05:28:47 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 717201A23E9 for ; Fri, 8 May 2015 05:28:47 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.9 X-Spam-Level: ** X-Spam-Status: No, score=2.9 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H2=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id AIIWfP01R6au for ; Fri, 8 May 2015 05:28:37 +0000 (UTC) Received: from mail-ie0-f170.google.com (mail-ie0-f170.google.com [209.85.223.170]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 4780B215CA for ; Fri, 8 May 2015 05:28:36 +0000 (UTC) Received: by iecnq11 with SMTP id nq11so56058351iec.3 for ; Thu, 07 May 2015 22:28:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=uHSXqG1439RH9GqHHcpFpT07TfLFaKBNBZOVOTJBQig=; b=u8nWtuXOmowQfajyieM4vhpraM1mn0n3L5i7hkOOhOrYqlQx/16wnB1UsrgMDYBPzF Cs86rfFYzVYPFlVoad3Ib4Bkip2hMVB3vZhXGPn5MTb+kbEIfzxOloc0wj3QWrv1hLG7 MhLYzVnEaY30hg+Mbj5R3twF7UtvaNFWsM1pgqegZMdj3pa9DOH/bqMK0eBe+bWS9ZVz 0ygVPKfU6xVSduOMEB2F+G6ubPcn44yFb9E4eUB6iGwC7rnyL18Uhg1RcWDHnG2Mctns qtgGVTmv8JTQARS021udS/sHJr0FFh4o4Rv3y79ioNkXwaJgw0WLFX0wph3cKubsyC1k V5Mw== MIME-Version: 1.0 X-Received: by 10.42.10.84 with SMTP id p20mr2257690icp.68.1431062909478; Thu, 07 May 2015 22:28:29 -0700 (PDT) Received: by 10.64.144.199 with HTTP; Thu, 7 May 2015 22:28:29 -0700 (PDT) In-Reply-To: References: Date: Fri, 8 May 2015 10:58:29 +0530 Message-ID: Subject: Re: Filtering ArrayCollection using RegExp From: Deepak MS To: "users@flex.apache.org" Content-Type: multipart/alternative; boundary=20cf302926385eed3f05158b4c4b --20cf302926385eed3f05158b4c4b Content-Type: text/plain; charset=UTF-8 Hi Kessler, I didn't knew about that class! It's great. Typically, I wanted 'contains' , 'starts with' and 'ends with'. All of it is there. I was using flex 3 in my project. So, i'll just replicate this class in my project. Thanks again, that was helpful. Cheers! On Thu, May 7, 2015 at 4:44 PM, Kessler CTR Mark J < mark.kessler.ctr@usmc.mil> wrote: > Try [1] to see if it makes it a little easier assembling a regex pattern. > It can create the pattern as a string or create a RegExp with the pattern > already assembled. > > > RegExPatterns.createRegExp("my search value", RegExPatterns.CONTAINS); > > RegExPatterns.createPatternString ("my search value", > RegExPatterns.CONTAINS); > > > [1] > https://flex.apache.org/asdoc/spark/components/supportClasses/RegExPatterns.html > > -Mark > --20cf302926385eed3f05158b4c4b--