On Mon, 12 Nov 2018 18:18:12 +0530
Asad <asad.hasan2...@gmail.com> wrote:

> Hi all ,
> 
>            I have two stings from logfile how can we have a common regex so
> that its parse datetime details for further parsing ;
> 
> Calling upgrade.sql on 05-JUL-18 10.19.42.559000 PM -12
> Calling apply.sql on 17.10.18 12:28:12,447849 +02:
> 
> I created on regex : \d\d\.\d\d\.\d\d\s[012][0-9]:[0-5][0-9]:[0-5][0-9]
> this only matches : Calling apply.sql on 17.10.18 12:28:12,447849 +02:
> 
> I need a common regex which matches both the lines ?
> 
> 
> Thanks,
> -- 
> Asad Hasan
> +91 9582111698

Hi Asad!

Try \d\S+\s[\d.:]{8}

-- 
Дмитрий Ананьевский <dime...@impulse-kiev.in.ua>

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to