zaert
Nintex Newbie

How to replace a "pipe" in a regular expression ?

Jump to solution

Hello,

As you can see in the screen, I used a regular expression to replace an expression like : i:0#.w|blablabla to blablabla

But when I execute my action the expression is : |blablabla

Problem :

When I used regular expression, this part "i:0#.w" is delete so it's OK but I don't know why the pipe "|" stay.

I try ASCII into the regular expression but it not work &#124

Do you have solution to fix it ?

0 Kudos
Reply
6 Replies
kapilkjoshi
Automation Master
Automation Master

Re: How to replace a "pipe" in a regular expression ?

Jump to solution

Hi Theo,

A pipe "|" expression in regex tells the system that a match can be on either side of the |. To replace this character you may have to escape it.

I'm not a pro at regex but this is what i have seen in the past. See more details here: replacing pipe "|"

Reply
francois
Forms Fledgling

Re: How to replace a "pipe" in a regular expression ?

Jump to solution

Absolutely

Add backslash before the pipe to have the correct result.

remove_pipe.png

View solution in original post

Reply
zaert
Nintex Newbie

Re: How to replace a "pipe" in a regular expression ?

Jump to solution

Thanks, I'm going to try and get back to you 😃

0 Kudos
Reply
zaert
Nintex Newbie

Re: How to replace a "pipe" in a regular expression ?

Jump to solution

Thanks for your help ! It works well 😃

KR

Theo

Reply
Not applicable

Re: How to replace a "pipe" in a regular expression ?

Jump to solution

Hi, Theo Delsante​, are you able to select a "correct answer" from this thread? If so, it'll help others in the community seeking correct answers to similar questions. Thanks!

Frank

Your community manager

0 Kudos
Reply
zaert
Nintex Newbie

Re: How to replace a "pipe" in a regular expression ?

Jump to solution

Yes, sorry I forgot

0 Kudos
Reply