Quantcast
Channel: Java RegEx meta character (.) and ordinary dot? - Stack Overflow
Viewing all articles
Browse latest Browse all 10

Answer by Fabian Steeg for Java RegEx meta character (.) and ordinary dot?

$
0
0

If you want the dot or other characters with a special meaning in regexes to be a normal character, you have to escape it with a backslash. Since regexes in Java are normal Java strings, you need to escape the backslash itself, so you need two backslashes e.g. \\.


Viewing all articles
Browse latest Browse all 10

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>