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.

Variable name string into components

Featured Replies

I often receive names strings which vary in format, eg

Harris, John Dr

Harris, Dr John

Dr John Harris

John Harris

 

I would like to extract the component names.

 

My plan -  which is my question - is to find the word number of the title (eg Dr=3), Once I have the word number for the title I can use various middlewords to extract  the name components. BTW titles are likely to including a variety of options. Dr, A/Prof, Prof, Ms, Mrs, Mr

 

 

For info, I have a clunky workaround for components which might be read as more than one word eg A/Prof, Smith-Harris by using substitute - "/"  "slash", "-" to "hyphen, etc extract via middlewords and then substitute back.

 

All suggestions welcome.

 

Why the big difference in the entry? Is the collection of this data in your control?

 

I posted a file  Links to files here that you might find helpful, but really your example of the data is convoluted.

 

HTH

 

Lee

  • Author

Indeed it is convoluted but the sources of information are different and definitely out of my control. Actually it is worse than I indicated as sometimes a nickname might be shown in brackets as well or use a shortened version of a name. I am trying to bring together multiple lists which have different additional information

Edited by Lee Smith
Removed quote, it was distorting you question

Hey John,

 

Wow, Good Luck with this project. It sounds like you can use Lynn's file by using scripts, but it certainly appears that it will be a hand's on project.

 

I'm curious though, is there any consistency within the individual list, or does each file have all of the same problems? 

 

Lee

  • Author

Thanks Lee. Each source tends to be similar. Sometimes drops the title.

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.