Your task is to match the pattern abc.def.ghi.jkl , where each variable a,b,c,d,e,f,g,h,i,j,k,l can be any single character except the newline.
For above question i am matching the input to regex :
// this is the regex pattern i am using currently
. has a special meaning in regular expression patterns.
If you want to get a "simple dot", you need to quote/escape it (as
And that special meaning is (under normal configuration) "any character except line breaks", which exactly matches your other condition, so you can simplify this to