Tap Forms – Organizer Database App for Mac, iPhone, and iPad › Forums › Script Talk › Using regular expressions in a script
I have a text field. It contains names (usually two or three words).
Is it possible to extract only the first word in a script field in way using regular expressions? (eg ^(\S+) (.*)$ or ^(.+?) (.*)$).
But I haven’t tested it myself.
If you check out my repo there is a match example and a replace example (also includes a sample of creating a RegExp object as well if you look up a few lines).
You must be logged in to reply to this topic.
Log in / Register