I've got bits of code using \n (newline)
example
Code: Select all
Found_pos_orig := RegExMatch(aFileContents,"`am)^.*(?=: paid the invoice\d+\n^.*\: paid\d+ and on time)", str_purchaser, pos)
Code: Select all
Found_pos_orig := RegExMatch(aFileContents,"`am)^.*(?=: paid the invoice\d+\R^.*\: paid\d+ and on time)", str_purchaser, pos)
So how can I code for a newline no matter how it got there in the above and for that matter any scenario?
EDIT: ALSO NEED to CHECK for end of file. As just noticed in a test, it won't match unless there are blank lines at end of the file.
Thanks for any help.