In Java, you might try to make a regular expression that would match the URL stackoverflow.com using Pattern.compile("stackoverflow.com"). But this would be wrong because the . has special meaning in regular ...
More precisely: Do
Pattern.compile(s, x | Pattern.LITERAL)
I have a Regex, which looks like [\\.|\\;|\\?|\\!][\\s]
I use this too split my Strings. But I don't want it to split the . ; ? ! which is on quotes.
I found ...
. ; ? !
I am trying to replace text with special chars (that require me to Pattern.quote them) with a lowercase version of that text but the Pattern.quote function sometimes adds \Q and \E ...