-1

How can I write a regex to extract the time from something like the below:

Example:

[00:16.150]Why <00:16.600>do you <00:16.800>look <00:17.150>so <00:17.600>glum?
1
  • i'm developing a karaoke application bro...
    – user912342
    Aug 30, 2011 at 8:57

1 Answer 1

0

\[\d{2}:\d{2}\.\d{3}\](?:.*?<\d{2}:\d{2}\.\d{3}>)*.* should match (if I haven't made a mistake), but I don't know what you want to do with the matched text.

1
  • i'm developing a karaoke application bro, thx for your answered :)
    – user912342
    Aug 30, 2011 at 8:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.