I would like to extract, the next 140 characters (excluding whitespace and newlines) after a keyword eg. "START".
This matches START followed by 140 non-whitespace characters, each of which can have any amount of whitespace in front of it.my ($foo) = $mailbox =~ /START((?:\s*\S){140})/;
- Yes, I reinvent wheels.
- Spam: Visit eurotraQ.
In reply to Re: Extracting text after a keyword
by Juerd
in thread Extracting text after a keyword
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |