I was trying out to create a regular expression to match file path in java like
C:\\abc\\def\\ghi\\abc.txt
I tried this ([
([
Just saying, one should replace the . in
.
([a-zA-Z]:)?(\\\\[a-zA-Z0-9_.-]+)+\\\\?
with \\.
\\.
. is meant for any character in a regular expression (Java style), while \. is specifically meant for . character, and we need to escape the backslash
\.