Hi, On Mon, Nov 25, 2013 at 7:55 PM, Mike Blezien <mick...@frontiernet.net>wrote:
> Hello, > > Regular expression have never been my strong suite > You might have to make it one. :) > so hoping to get a litte help with a line in file I need to extract a > portion of it. > > The text I need to extract from this line is "*November 21, 2013"* from > this line in the file, just the date: > > Posted by <a > href="mailto:someem...@email.com">Some<someem...@email.com%22%3ESome>Name</a> > on* > November 21, 2013* at 23:21:58:<p> > > what would be the regrex to use to extract the date from the line ? > Something like this: [CODE] use warnings; use strict; $_ = 'Posted by <a href="mailto:someem...@email.com">Some Name</a> on November 21, 2013 at 23:21:58:<p>'; print $1 if(/.+on(.+)at/); [/CODE] You might have to read http://perldoc.perl.org/perlre.html for in depth documentstion. > > Thanks, > > Mike(mickalo)Blezien > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= > Thunder Rain Internet Publishing > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > -- Tim