If I'm forced to process the file line by line instead of "slurp"ing the file, does that mean I can't regexp over multiple lines?If you are visiting your relatives one by one, are you having a family reunion?
Unless you concatenate the lines yourself, it's not going to work. There's no magic in the regular expression engine that says, "hmmm, I'm not going to match this line, I'm just going to read one more line from the input to see whether it matches now".
In reply to Re^3: regexp over multiple lines
by JavaFan
in thread regexp over multiple lines
by liverpaul
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |