in reply to Extracting text after a keyword

Putting aside the mail reading bits, the regex for that would be: /START(.{140)/)/ with modifiers to fit your data format (which could have used a tighter description here). If you have several keywords, you might be better served by Parse::RecDescent.

Update: Having seen your data now, you might be better off splitting on whitespace. You may also be able to exploit the structure of five-character groups. The data you show doesn't seem to fit the description in the root node, am I missing something?

After Compline,
Zaxo

Replies are listed 'Best First'.
Re: Re: Extracting text after a keyword
by Anonymous Monk on Jul 02, 2002 at 09:16 UTC
    Thanks. I'll have a play with those. The data format is a group of numbers/letters/punctuation. It looks something like this, but may be set out out on any number of lines. The '/' is sometimes a letter in some circumstances.
    UFOFH 10504 91001 /0600 6036/ 7049/ 8055/ 9065/ 0068/ 1073/ 2075/ 3076/ 4076/ 5073/ 6079/ 7073/ 8068/ 9064/ 0060/ 1046/ 2042/ 3040/ 0037/ 1035/ 2035/ 3035/ 4031/ 5030/