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

Question

Question

workflow parse string to next whitespace after match

asked on November 7, 2016

I am new to workflow so any help is appreciated. I need to parse the word following a match of a specific character string. As an example out of the following string - "This is #CA 3700.0010.025 for your review." I need to match "#CA" and capture the string "3700.0010.025". I have tried the regular expression #CA \S* and I get back #CA 3700.0010.025 but this is as far as I get. Basically I trying capture the first character after the match and all characters up to but not including the next whitespace character.

0 0

Answer

SELECTED ANSWER
replied on November 7, 2016

Hi Leigh,

I think this expression should meet your requirements.

#CA\s\S+

The \S+ will pull every character until the next space.

If you needed to omit the #CA, you could use this alternative: #CA\s(\S+)

0 0
replied on November 7, 2016

Thanks. That is what I needed.

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.