Skip to main content

All I want to do is to extract the string of everything up to the first character.

So I came up with this as my regular expression.

^(.+?)

But the extract action wants a collection for the result.    Why?   I can see a collection for a split but can't fathom why an extract would return a collection.

Is the an easier way to do this?

Say I have the string ABC123

I want to return ABC   in a workflow action.

because in general even extract can match several tokens and regex is not (can not be) evaluated at design time to determine whether it returns single value or set of values.

see eg

203178_pastedImage_1.png

btw, have you tested your regex? it doesn't provide output you ask for, it's even not a valid regular expression. but I guess it's just matter of copy&paste happy.png


You can use this expression

\.*$

and use replace , don't use extract and you will get the ABC in a string.

203184_pastedImage_31.png


That worked perfectly.    Thanks.


Reply