Jump 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.

Need some serious help parsing text

Featured Replies

Ok, So below is an example text string i'll be working with

2~11~Test ID~4/19/2012 12:23:51 PM~USER~123.123.123.123




what I am trying to do is to get each section of the text (between each ~) into it's own field.



I can do it to the first section with the following function





Left( Text; Position( Text; "~"; 1; 1 ) - 1 )

But everything fails after that :(

So in the end I am needed to create 6 fields. and those fields "using this example" would show the following.

  1. 2
  2. 11
  3. Test ID
  4. 4/19/2012 12:23:51 PM
  5. USER
  6. 123.123.123.123

Any help would be appreciated!

From your sample it doesnt seem like there would ever be any carriage returns. So your parsing could be as simple as:

Substitute ( "2~11~Test ID~4/19/2012 12:23:51 PM~USER~123.123.123.123"; "~"; ¶ ) or

Substitute ( YourRawField; "~"; ¶ )

Then you can use GetValue ( ) to grab the value that you want.

  • Author

Perfect-O!

Thanks so much that's exactly what I was looking for.

Create an account or sign in to comment

Important Information

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

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.