Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

how to extract specific string

Featured Replies

I 've been trying unsuccessfully to extract the word "ERROR" from a field that contains a email transmisson log. I hoped to find a way to transfer the word "ERROR" (should it be present) to a different field using a calculation field. Since these messages are variable in length, using "Right" "Middle" "Left" don't seem practical.

Is there a way to search or filter the field (without entering Find Mode) for the word and cause it to appear in the another field by calculation? Otherwise, how would I extract the word if I felt certain that it were the 19 th word from the end?

You can use the PatternCount() function to find out how many times a word appears in another field. Therefore,you could write:

Case ( PatternCount ( emailField ; "error" )  = 0; ""; "error" )

to get the result you want.

  • Author

Thanks Kent!

Your PatternCount tip works perfectly. Also, I found that I can nest the RightWords function within the PatternCount parameters to obtain # occurences, which is also useful.

If you want to use it even more powerfully, try combining it in calculations with the Position() function and the Left(), Middle(), or Right(), or LeftWords(), MiddleWords() or RightWords() functions.

You can do some pretty cool text parsing that way.

Edited by Guest
correct spelling

  • Author

I really appreciate your suggestions! I'll being going further into parsing in the near future and most likely will need to explore that tip.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.