[Solved] Convert JavaScript /[^A-Za-z0-9\+\/\=]/g to Java [closed]


You have to escape the \ in Java, so replace all your \ with \ (mentioned by Hacketo)

Regex is regex, they don’t get changed with respect to languages but yes, the way they are tested, changes..You just need to look into how to match a string with a regex in java.

3

solved Convert JavaScript /[^A-Za-z0-9\+\/\=]/g to Java [closed]