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

Discussion

Discussion

Simple RegEx to remove Apostrophe (not working

posted on August 18, 2024

Hi all,

 

Have looked at some examples and am not sure why my regex is not working in Workflow. I'm just trying to remove the apostrophe from a token. However it just gives back the first character?

 

What am I missing here?

 

Thanks

 

0 0
replied on August 18, 2024

Ahh, I see, thank you, that's very helpful!

0 0
replied on August 18, 2024 Show version history

The function of your regex is matching a string that does not contain apostrophe and return, which is not what you want. I think it is better to utilize the Substitute method in Token Calculator Formulas | Laserfiche Workflow like the following screenshot. The first parameter can be replaced with the token that you want to remove the apostrophe from.

2 0
You are not allowed to follow up in this post.

Sign in to reply to this post.