Remove special characters using Pentaho - Replace in String

12,215

As per documentation, the regex flavor is Java. You may use

\p{Punct}

See the Java regex syntax reference:

\p{Punct} Punctuation: One of !"#$%&'()*+,-./:;<=>?@[]^_`{|}~

Share:
12,215

Related videos on Youtube

M. Loyyy
Author by

M. Loyyy

Updated on June 15, 2022

Comments

  • M. Loyyy
    M. Loyyy almost 2 years

    I wanted to remove the special characters like ! @ # $ % ^ * _ = + | \ } { [ ] : ; < > ? / in a string field.

    I used the "Replace in String" step and enabled the use RegEx. However, I do not know the right syntax that I will put in "Search" to remove all these characters from the string. If I only put one character in the "Search" it was removed from the string. How can I remove all of these??

    This is the picture of how I did it: This is the picture of how I did it

  • M. Loyyy
    M. Loyyy about 7 years
    Thank you! Such a big help :)