-1

I have to replace all not alphanumeric character ("_" included) and i had success with :

.replaceAll("[\\W_]", "%");

Now I need to exclude from that regex the greek char especially µ .

I had no success with "^", how can i do that?

Thanks a lot

DanieleO
  • 462
  • 1
  • 7
  • 20

1 Answers1

0

You could try this:

[^a-zA-Z0-9-()/\s\p{IsGreekandCoptic}]
TheNewBegining
  • 91
  • 1
  • 14