From: "Lloyd Alvarez" Received: from c147c-aesc.jetrails.io ([69.27.38.85] verified) by media-motion.tv (CommuniGate Pro SMTP 6.1.0) with ESMTPS id 7440292 for AE-List@media-motion.tv; Wed, 25 Sep 2019 01:03:46 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=aescripts.com; s=default; h=Content-Type:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Sender:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=IZFRQsuDQUQ+AcIz1+mBvHjlsTR3EuF3GAGQ1Y05Jso=; b=UtxkYa90lGxMOy4sDg42CEiBZ b9R6d/2qm8v81xP/ArBsoRxy77X2ZwAJLz6UW9Q1Fxjj1LTMqoiSvASYF9T13eG3F+5Z5jkDN+dgC zc8IHe7pbO933YOLtZDpVgXjrc64ru7z+aFDhtN1j4dZmVO/8Q3enO5rM7x9DaljW3q4XAgybBywd 4ghyuLyiiFRi8xX/Y+cIV9pybSdPszrX/eRrHmFzYjDchE9TzCWb09DQA9kBfbxxhOIReDM+ljDCX HnNVvC+2g1pPK2rXHnF1m2ouatzKNa/yb0ynYp3a/x8JE03984AP03sRlAcb5wwkYATT+/BxYtIj6 zQbUIgQYw==; Received: from mail-ua1-f45.google.com ([209.85.222.45]:34808) by c147c-aesc.jetrails.io with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.92) (envelope-from ) id 1iCttY-0007TZ-Dd for AE-List@media-motion.tv; Tue, 24 Sep 2019 23:06:56 +0000 Received: by mail-ua1-f45.google.com with SMTP id q11so1159554uao.1 for ; Tue, 24 Sep 2019 16:06:56 -0700 (PDT) X-Gm-Message-State: APjAAAXsO8n54jUmvLOTC9xm40X494V20/5cdsoxkBa+dPZC4zzKzAYb 53k7kbF7aSCISMaltaAAZUuNFhCUcw1vzr+cAWk= X-Google-Smtp-Source: APXvYqy0OM+4tY3yc2Il1dseSVhGgrt5evPp8jsDb9aK/LWX1wU6QOvbvamc7gJNdPzv9+nrqNiKXcfva79B0awICFU= X-Received: by 2002:ab0:7451:: with SMTP id p17mr2936088uaq.76.1569366416072; Tue, 24 Sep 2019 16:06:56 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 24 Sep 2019 19:06:45 -0400 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [AE] Regex help on expression To: After Effects Mail List Content-Type: multipart/alternative; boundary="000000000000c0a7c3059354973d" X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - c147c-aesc.jetrails.io X-AntiAbuse: Original Domain - media-motion.tv X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - aescripts.com X-Get-Message-Sender-Via: c147c-aesc.jetrails.io: authenticated_id: smtp@aescripts.com X-Authenticated-Sender: c147c-aesc.jetrails.io: smtp@aescripts.com X-Source: X-Source-Args: X-Source-Dir: --000000000000c0a7c3059354973d Content-Type: text/plain; charset="UTF-8" Try this: *text.sourceText.match(/*[0-9]+(ST|ND|RD|TH)*/g);* -- Cheers, Lloyd --000000000000c0a7c3059354973d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Try this:

text.sourceText.match(/[0-9]+(ST|ND|RD|TH)/g);
-= -
Cheers, Lloyd
--000000000000c0a7c3059354973d--