•  

    February 2008
    M T W T F S S
    « Jan   Mar »
     123
    45678910
    11121314151617
    18192021222324
    2526272829  

Java regular expression: Replace and negate some punctuations

The situation is that we want to replace some punctuations in a text string and we want to exploit POSIX code, \p{Punct}. However, we do not want to cover all punctuations in the \p{Punct} class. For example, we want to replace punctuations  in the \p{Punct} class except ‘.’, ‘/’, ‘<’ and ‘>’ in an XML [...]