Jump to content
UBot Underground

Remove one word. keep two words


Recommended Posts

So I have a variable like this:

 

Richard Basehart, Phyllis Kirk, Stephen Elliott, Russell Collins, Richard Hale, Charles Wagenheim, Alan Wells, Tommy Cook, William Pullen, Paul, Lee, Vaso, Kaan, Ali

 

I'd like to remove everything with one word, but keep all two+ word entries.

 

Any ideas?

 

Thanks!

Link to post
Share on other sites

This removes all one word except if it happens to be the last one. (Did not have time to add that, sorry)

 

set(#Temp, $replace regular expression("Richard Basehart, Phyllis Kirk, Stephen Elliott, Russell Collins, Richard Hale, Charles Wagenheim, Alan Wells, Tommy Cook, William Pullen, Paul, Lee, Vaso, Kaan, Ali", ",\\s[a-zA-Z]*(?=,)", ""), "Global")

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...