This isn't a problem with the regular expression per se, but how the file is read. If you wish to search for a regular expression across the file, you should read the file in full, and then pass the...
Type: Posts; User: copeg
This isn't a problem with the regular expression per se, but how the file is read. If you wish to search for a regular expression across the file, you should read the file in full, and then pass the...
You will have to post an example then (both code and text to parse) that does not work, as it works for me...
By default, a dot (".") in a regular expression excludes new lines. Pass Pattern.DOTALL to the Pattern compiler to have dots represent all plus new lines
Pattern patter = Pattern.compile(regex,...