regex - How to replace pipe with regular expressions -


i have chain want replace occurrences given following pattern \d{1}[|], replace pipe space.

cll18|c municipio libre 4a secc|cll10|calle mpio. libre 4a secc|tknsprs|mpio. libre 4a secc.|cll20|mpio. libre

and stay follows:

cll18 c municipio libre 4a secc|cll10 calle mpio. libre 4a secc|tknsprs|mpio. libre 4a secc.|cll20 mpio. libre

is possible regular expressions??

(?<=\d)\| 

try this.re.sub(r"(?<=\d)\|"," ",test_string)see demo.

https://regex101.com/r/mt0ie7/25#python


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -