Topic was automatically imported from the old Question2Answer platform.
Asked By
muncuss
Hello, i am trying to find either + or - in a string like “apple + 6” with regex.compile(“+|-”) but return null. maybe it needs escape character but im trying with \+|- it said invalid escape sequence. tried to double it (“\\+|-”) only worked once and now it returns also null