Here is my REGEX:
.*time\s+(\d{2}:\d{2}\s(am|pm)).*
I have a string like this:
there is some text and maybe some number or symbols time 12:32 am and there is some text
// ^^^^^
// ^^^^^^^^
Now I need to replace that captured group with another time. Like these:
there is some text and maybe some number or symbols time 01:21 am and there is some text
or any other time ..! Actually my main pattern is this:
{anything}{time }{AnyDigit}{AnyDigit}{:}{AnyDigit}{AnyDigit }{am|pm }{anything}
Well, How can I do that? (replace a dynamic time with captured group)