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.

2 text-parsing calculation questions

Featured Replies

Hi there,

could someone recommend how I should approach:

1. grabbing the email address that comes after the word "Requestors: " out of a field that has the following information:

Mon Oct 01 15:51:24 2007: Request 7897 was acted upon.

Transaction: Ticket created by [email protected]

Queue: cbio-faculty-search

Subject: rec letter for Dr. John Smith

Owner: Nobody

Requestors: [email protected]

Status: new

blah blah blah blah blah...

and

2. Grab the first name and last name out of a From field that contains the following?

"John Smith via RT"

many thanks in advance

This should help you with your fist question:

http://www.fmforums.com/forum/showtopic.php?tid/172999

I am not sure there IS an answer to your second question, since every sender can call themselves whatever they want, e.g.

"John Smith via RT"

or

"Smith, John via RT"

or even

"PsychoKiller"

  • Author

Thanks comment! I think this answers the 2nd part too-- it's almost always going to be

"First name Last Name via RT" since RT is a system that is generating that email header.

I'll grab the first " and the text "via RT"..

figure out what is in the middle and then use leftwords and rightwords

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.