You are viewing limited content. For full access, please sign in.

Question

Question

remove last word in string

asked on June 4, 2019

We are trying to capture addresses from another system using the LF Connector, but when we import them, we want to remove any suffixes.  Example, 418 Potter Road NE but we'd want to ignore the "NE".  (\w+ \w+ \w+) \w+ would work if every address was the same amount of "words" in the string but they aren't.  How do I remove the last word in a string of unknown amount of words?  Thanks.

0 0

Answer

SELECTED ANSWER
replied on June 4, 2019

Right after posting, I figured it out:  (.*) \w+

0 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.