I'm having a hard time trying to figure out a regular expression to match several things in a text file. I'm trying to search for different elements inside the text file and match them all within the same query, but I just can't seem to do it right.
Example file:
"From test@123.com
Here is the rest of the stuff for the file
Resolved by: username at: 12/08/05 11:38:54
Stuff on bottom here"
I'd like to be able to search for 'From xxx@xxx.com' and 'Resolved by: username' individually or in conjunction. This regular expression did not match:
Example regex:
(From xxx@xxx.com)(.|\n)*(Resolved by: username)
I am not sure how to regard the white space in the middle of the file. Does anybody have some insight into making this regex fit? I can use all the help I can get
Thanks.
Example file:
"From test@123.com
Here is the rest of the stuff for the file
Resolved by: username at: 12/08/05 11:38:54
Stuff on bottom here"
I'd like to be able to search for 'From xxx@xxx.com' and 'Resolved by: username' individually or in conjunction. This regular expression did not match:
Example regex:
(From xxx@xxx.com)(.|\n)*(Resolved by: username)
I am not sure how to regard the white space in the middle of the file. Does anybody have some insight into making this regex fit? I can use all the help I can get
Thanks.