Regex: How do I put this on one line? (Time-date parsing)
I'm not great at regex so I'll try to explain what I have.
Code:
Someone know how to do this? |
If I understand you, and the lines look like your sample does, it's not too bad. Essentially you want to capture everything in between [ and ] and leave the time stuff in the order it's found. This works using Perl:
Code:
#!/usr/bin/perl Code:
my $stime = $1 if $1; |
Thanks! This works. :)
|
All times are GMT -5. The time now is 03:40 PM. |