in reply to Regex for IOS messages

This followup isn't in direct answer to your question. But I wanted to respond to the issue expressed in the title of the node: "Regular Expressions Hate Me".

First, don't take it personally. ;) They don't actually hate you, they just haven't taken the time to get to know you well enough yet.

Joking aside, if you (like most people, myself included) occasinally feel inadequate in the face of serious regex challenges, you owe it to yourself to pick up at the store or library the "Owls book", Mastering Regular Expressions from O'Reilly and Associates.

There are some good reviews of this book in the Monastery's Reviews section. By the time you finish this book you'll find yourself dreaming in pattern matches.


Dave

Replies are listed 'Best First'.
Re: Re: Regex for IOS messages
by Anonymous Monk on Apr 13, 2004 at 13:01 UTC
    No, they really do hate me. (You should see the hurtful spam they send) Just kidding. I will check out the book although if you are like me, you probably don't have time to read the book before you finish the project. Until then I'll have to beg for help here. - Scott
      Sorry, still learning how to use this board. Replied to the wrong message and left out the regex. Hope you find it anyway.
      my ($user, $group, $connected, $type) = $VAR2 =~ /User \[(\w+)\] Group + \[(\w+)\] (\w+), Session Type: +(\w+)$/;