Greetings,
In Microsoft Word, I can use the wildcard " * " to search for anything (characters, numbers, white space of every kind, line breaks of every kind, etc.) appearing between any two words of my choosing.
I am trying to do the same thing with Java regular expressions; thus far, I find nothing equivalent to the MS Word " * " wildcard.
Is there an equivalent regular expression in Java?
Using " .* " in a Java regular expression will extend only to a single line of text -- it "quits" upon reaching a line break.
I have read somewhere that in Java regular expressions, the dot (" . ") matches any character except line breaks.
My question is this: Is there a Java representation -- analogous to the " * " wildcard in MS Word -- that encompasses (a) any character and also (b) all line breaks, etc.?
Thank you for your time and attention.
BB Smith.