Reader small image

You're reading from  Automate It with Zapier and Generative AI - Second Edition

Product typeBook
Published inAug 2023
PublisherPackt
ISBN-139781803239842
Edition2nd Edition
Tools
Right arrow
Author (1)
Kelly Goss
Kelly Goss
author image
Kelly Goss

Kelly Goss is a process automation specialist and company director for Solvaa, a cloud-based automation consultancy. She has worked across multiple industry verticals for providing Zapier consultancy, digital process improvement, process mapping and process automation solutions. Kelly is a Zapier Certified Expert and a speaker at multiple events related to automation.
Read more about Kelly Goss

Right arrow

Finding the first position of specified text

On occasion, you might want to know in what numerical position a word first appears in a string of text. You can use the Formatter by Zapier Text action event with the Find transform function to find the first numerical position of a word or phrase in a string of text. A number will be returned representing the character position of the first letter of the word or phrase. For example, if you wanted to find the position of the word green in a string of text such as green is a wonderful color, the returned value would be 0. If the string of text were isn't green a wonderful color?, the returned value would be 6. If the search term does not exist in the string of text, the value that is returned would be -1. You can also skip several characters that you do not want to be included in the search. For example, if the text string is plum and apple and pear and plum, we can ignore the first position of the word plum by skipping the first four...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Automate It with Zapier and Generative AI - Second Edition
Published in: Aug 2023Publisher: PacktISBN-13: 9781803239842

Author (1)

author image
Kelly Goss

Kelly Goss is a process automation specialist and company director for Solvaa, a cloud-based automation consultancy. She has worked across multiple industry verticals for providing Zapier consultancy, digital process improvement, process mapping and process automation solutions. Kelly is a Zapier Certified Expert and a speaker at multiple events related to automation.
Read more about Kelly Goss