I\'m trying to understand Pattern.quote using the following code:
Pattern.quote
String pattern = Pattern.quote("1252343% 8 567 hdfg gf^$545"); System
Regex collides frequently with normal strings. Say I want a regex to search for a certain string that is only known at runtime. How can we be sure that the string doesn't have regex meaning eg(".*.*.*")? We quote it.
".*.*.*"