Regular Expression: Match untill pattern is found

Posted by ZafarYousafi on Stack Overflow See other posts from Stack Overflow or by ZafarYousafi
Published on 2010-06-09T08:18:37Z Indexed on 2010/06/09 8:22 UTC
Read the original article Hit count: 157

Filed under:

Hi, I want to extract the status from the string untill I found a timespan. My input is something like "Something in start but not with this keyword of sure. STATUS: My Status Is Here Which can be anything but timespan 23:59:01 and so on. I want to extract the string after STATUS: untill 23:59:01 is found. How can i achieve this through regex. this 23:59:01 is a timespan and it is always in this format hh:mm:ss

© Stack Overflow or respective owner

Related posts about regex