I need to extract text which has two possible formats for the preceding text. To be used in Postgres function
In each of the two examples below the desired result is Request successful
[May 08, 12:06AM] Request successful
[Apr 18, 12:10AM] Request req_wofjfiufmjs: Request successful
so the prefix can be the \[.*\]\s
or \[.*\]\sRequest\sreq_.*:\s
i have tried
(?<=\s*\[.*\]\s|\s*\[.*\]\s*Request\s*req_.*:\s).*
this works for the first case, but not the second case.