RE: Help with grep
RE: Help with grep
- Subject: RE: Help with grep
- From: "Jacopille, David" <email@hidden>
- Date: Sat, 26 Dec 2015 06:22:03 +0000
- Thread-topic: Help with grep
\d{1,2}\+\d{1,2}\sgratis
From: applescript-users-bounces+djacopille=email@hidden on behalf of Bert Groeneveld
Sent: Friday, December 25, 2015 4:18:03 PM
To: asu
Subject: Help with grep
Hi, is there a way to simplify this statement using grep? Can anyone post example code? (I have satimage.osax installed).
I want to check if a string starts wit one or two digits followed by a plus sign followed by one digit followed by a space followed by the word “gratis”.
if (_tempData as text) starts with "1+1 gratis" or (_tempData
as text) starts with "2+1 gratis" or (_tempData as
text) starts with "3+1 gratis" or (_tempData as
text) starts with "2+2 gratis" or (_tempData as
text) starts with "5+5 gratis" or (_tempData as
text) starts with "1+2 gratis" or (_tempData as
text) starts with “10+2 gratis” then
Thanks in advance for any help, Bert.
MFS Email system made the following annotation
---------------------------------------------------------------------------------------------------------------------------------------
This email communication and any attachments may contain proprietary, confidential, or privileged information. If you are not the intended recipient, you are hereby notified that you have received this email in error and that any review, disclosure, dissemination,
distribution or copying of it or its contents is prohibited. The sender does not waive confidentiality or any privilege by mistransmission. If you have received this email in error, please notify the sender immediately, delete this email, and destroy all copies
and any attachments.
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden