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.

Need help w/ parsing some text

Featured Replies

I need to parse this line of text with script maker into different fields.

Text:

9/30/2004|6:59:35 PM|Test Co.|Test Co. 111

to

Date = 9/30/2004

Time =6:59:35 PM

text1 = Test Co.

text2 = Test Co. 111

I used pipes "|" instead of the return character (for separators) as I thought it may interferer with the data in some the fields that may have returns.

Thanks

FM7

You don't need script you need calcaulations! Using the field Input for your original text the calcaulations are:

Date = GetAsDate ( Left( Input ; Position ( Input ; "|" ; 1 ; 1 ) - 1))

Time = GetAsTime ( Middle ( Input ; Position ( Input ; "|" ; 1 ; 1 ) + 1 ; Position ( Input ; "|" ; 1 ; 2 ) - Position ( Input ; "|" ; 1 ; 1 ) - 1 ) )

Text1 = Middle ( Input ; Position ( Input ; "|" ; 1 ; 2 ) + 1 ; Position ( Input ; "|" ; 1 ; 3 ) - Position ( Input ; "|" ; 1 ; 2 ) - 1 )

Text2 = Right ( Input ; Length ( Input ) - Position ( Input ; "|" ; 1 ; 3 ))

Make sure the calculations are the correct type.

You might check out this Forum Thread, it is concerning custom functions but the technique works very well.

  • Author

Thanks guys this has helped.

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.