M
MD
regular expression match any character including new line
([.|/s]*)
why this doesn't work?
MD
([.|/s]*)
why this doesn't work?
MD
MD said:regular expression match any character including new line
([.|/s]*)
why this doesn't work?
MD said:regular expression match any character including new line
([.|/s]*)
why this doesn't work?
Jeffrey said:MD said:regular expression match any character including new line
([.|/s]*)
A . inside a character class means the class can match any character
other than newline. You can make it match newlines, too, by making
Pattern.DOTALL the second argument to Pattern.compile.
A | in a character class can match a literal |. The nature of the
character class effectively ORs its sub-expressions, so you do not need
to specify a pipe at all unless you want to match the character |.
The characters / and s inside a character class mean the class can match
either a literal / or literal s. To represent whitespace, use \s.
why this doesn't work?
If nobody has answered your question yet, please post a complete
program, along with sample input.
MD said:regular expression match any character including new line
([.|/s]*)
why this doesn't work?
MD said:regular expression match any character including new line
([.|/s]*)
why this doesn't work?
Lasse Reichstein Nielsen said:[.\s]
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.