From: "Nathan Shipley" Received: from mail-io1-f47.google.com ([209.85.166.47] verified) by media-motion.tv (CommuniGate Pro SMTP 6.1.0) with ESMTPS id 7440269 for AE-List@media-motion.tv; Tue, 24 Sep 2019 23:45:01 +0200 Received: by mail-io1-f47.google.com with SMTP id v2so8211489iob.10 for ; Tue, 24 Sep 2019 14:48:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=0WYeZ0bx7lQDaOgoV9xUDqPDiWeSLX2C5qw7xAa6JGY=; b=Fb6fKLrN1+PpQdnYjRMm+bd2w5X7B+tj/NHPnQJ/z4Wu6hHNN+oQkhlr/InkwIYrat rAw0Kfb6fERqyKWtHkZh/Urha1/TMZIp+u8TDVDX0ZfgrzsWCgM4PIZlYb4rEIgczmem /x0Sk+Kv9TizIEixgxwiXybT0YSJK3Ic4cvJa6wtiWD4Q2Lop4xy8CrN/PrWO3xLrRuY JPYXO1w7qJayanHGmXnt8fHGBLnaDYV0qgjf75jZPDwsT67b0YKy5Btb3/PsOVf9jC+o Rt6uzutG6C7eyGnUvBgPWE/6MYEb2joFqZUvU72cSi8JHstAz8ZiZw5CCN0aYxugfclL 4x0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=0WYeZ0bx7lQDaOgoV9xUDqPDiWeSLX2C5qw7xAa6JGY=; b=qp2fXLOZTq3eyXGOhtnoXnvd9IcnbnlU64gMpyEbedn3/FbjwxZsIs5npmTatkNgXO h79OfWIUC/r59tYkz9QgAzLk+LkxEV1vDAaoo59jjXk5I7wVIejnfCUfove33+oJkvXa q5qHZKr4Trwh8ECXVVULx8JyFEFIltUqa5qXqask6m41f4iqMkZR/xSQWmPxfLhKghhc ZTc4XdelX5I9kMTl07hjjVrLON+g75kXcxEFNQ8ncuFWBPloHTxdUgxjh4t106nkGfMd TE8Nrne4V1ogM93gNTUuPjUBhD5Vkt5VgbxymwY0YvnvYDbBJY9LPhefBbPCeOCv6Ij2 wVSw== X-Gm-Message-State: APjAAAUwftYodkXmP1rp7bBa4vv8lVbqCtxpiCBjLcOyYtXtFwCZz/sX BwOQ9fj81peJ0Qr7VI44wwxU4v79kDlM1rHAo5hqIA== X-Google-Smtp-Source: APXvYqy2CzYVVUwVTpPFNPvGF9maBCmUgvUpzI1kAsK7BxSTblTdNLQQObCfmz33gt0niV0F3/yzyZiXR9smuSe9/k4= X-Received: by 2002:a6b:c903:: with SMTP id z3mr6314233iof.204.1569361691947; Tue, 24 Sep 2019 14:48:11 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 24 Sep 2019 14:47:59 -0700 Message-ID: Subject: Re: [AE] Regex help on expression To: After Effects Mail List Content-Type: multipart/alternative; boundary="0000000000002c58ca0593537e71" --0000000000002c58ca0593537e71 Content-Type: text/plain; charset="UTF-8" Have you tried using https://regexr.com/ to build/check your expression? On Tue, Sep 24, 2019 at 2:31 PM Byron Nash wrote: > I'm trying to craft a regular expression to locate some parts of a string > and manipulate it with expressions. Do we have any REGEX experts in here? > > *text.sourceText.match(/(?<=\d)ST|ND|RD|TH/g);* > > I'm trying to locate one of those strings (ST|ND|RD|TH) *but only if it > follows a number.* For some reason the thing returns the string if a word > begins with one of those strings. I can't figure out why it's doing that. > I'm telling it only look after digits. > --0000000000002c58ca0593537e71 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Have you tried using=C2=A0https://regexr.com/=C2=A0to build/check your expressi= on?

On Tue, Sep 24, 2019 at 2:31 PM Byron Nash <AE-List@media-motion.tv> wrote:<= br>
I'm trying to craft a regular expression to locate some parts of a str= ing and manipulate it with expressions. Do we have any REGEX experts in her= e?

text.sourceText.match(/(?<=3D\d)ST|ND|RD|TH/g);

I'm trying to locate one of those strings (ST|ND= |RD|TH) but only if it follows a number. For some reason the thing r= eturns the string if a word begins with one of those strings. I can't f= igure out why it's doing that. I'm telling it only look after digit= s.=C2=A0
--0000000000002c58ca0593537e71--