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 6D1F317D25 for ; Wed, 8 Oct 2014 16:32:41 +0000 (UTC) Received: (qmail 41323 invoked by uid 500); 8 Oct 2014 16:32:41 -0000 Delivered-To: apmail-flex-users-archive@flex.apache.org Received: (qmail 41295 invoked by uid 500); 8 Oct 2014 16:32:41 -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 41283 invoked by uid 99); 8 Oct 2014 16:32:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Oct 2014 16:32:40 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of markzolotoy@gmail.com designates 209.85.218.42 as permitted sender) Received: from [209.85.218.42] (HELO mail-oi0-f42.google.com) (209.85.218.42) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Oct 2014 16:32:15 +0000 Received: by mail-oi0-f42.google.com with SMTP id a141so8101026oig.15 for ; Wed, 08 Oct 2014 09:32:14 -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=DytW0qBJqfbnOZlHh6e2Pw/R1PiHazKGrxbxyc1jHfU=; b=hApElxGhyT8cVsQhr79oMeT6q0VKbfAz1cpmG1cNJVmt/AhZemOgybS2cnUVgzq2wu xeOsQFWdfVUI7ObJo3jh4dWV39X6GYD91Hzr7aPPGlg8WgpiTjhVyCTFePQlYt2IEtFW DTWbqe/VVqRbTM7WXpRYaZYjhm6zHKqaixM85a2Se9AKMNJlXo65g0lv5qjTajEf0S/7 2S/B7Q2pGS/RtyzWmSXpVCSyhIyGEXehOrU19KP14yrIkih81rgU/I37q4Vr/BX0GUHA TRt3AYTb0nj5W3oLvf75zYCD4DfIZGjiI6e1kG4MmgABUbD5pHhDVOo2rQm/sjherUHp Qr8Q== MIME-Version: 1.0 X-Received: by 10.60.121.33 with SMTP id lh1mr13977703oeb.59.1412785933926; Wed, 08 Oct 2014 09:32:13 -0700 (PDT) Received: by 10.76.89.9 with HTTP; Wed, 8 Oct 2014 09:32:13 -0700 (PDT) In-Reply-To: <54355D54.5040401@extravision.com> References: <54355ACA.4090903@extravision.com> <54355C2F.3040104@extravision.com> <54355D54.5040401@extravision.com> Date: Wed, 8 Oct 2014 11:32:13 -0500 Message-ID: Subject: Re: Looking for regex help From: mark goldin To: users Content-Type: multipart/alternative; boundary=047d7b33d004bc486b0504ebdb14 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b33d004bc486b0504ebdb14 Content-Type: text/plain; charset=UTF-8 Thanks, Tom, will follow. On Wed, Oct 8, 2014 at 10:50 AM, Tom Chiverton wrote: > You may need to escape the brackets too > /new Date\([0-9]+\)/ > > Tom > > > On 08/10/14 16:45, Tom Chiverton wrote: > >> That's handy, [0-9]+ means at least one number :-) >> >> Tom >> >> On 08/10/14 16:43, mark goldin wrote: >> >>> What I was saying by .... is that I dont know how many numbers are going >>> to >>> sent to Date function. >>> >>> On Wed, Oct 8, 2014 at 10:39 AM, Tom Chiverton >>> wrote: >>> >>> You could just add speech marks to the end of the string if it matches >>>> /new Date([0-9]+)/ ? Or at the .... to be matched too ? >>>> >>>> Tom >>>> >>>> >>>> On 08/10/14 16:32, mark goldin wrote: >>>> >>>> I need to come up with a regex that would do the following: >>>>> >>>>> source: new Date(1234567890 .....123456) >>>>> result: "new Date(1234567890 .....123456)" >>>>> >>>>> Thanks for the help. >>>>> >>>>> >>>>> ______________________________________________________________________ >>>>> This email has been scanned by the Symantec Email Security.cloud >>>>> service. >>>>> For more information please visit http://www.symanteccloud.com >>>>> ______________________________________________________________________ >>>>> >>>>> >>>> >>> ______________________________________________________________________ >>> This email has been scanned by the Symantec Email Security.cloud service. >>> For more information please visit http://www.symanteccloud.com >>> ______________________________________________________________________ >>> >> >> >> >> ______________________________________________________________________ >> This email has been scanned by the Symantec Email Security.cloud service. >> For more information please visit http://www.symanteccloud.com >> ______________________________________________________________________ >> > > --047d7b33d004bc486b0504ebdb14--