For eg:
Input -> "x() |> y($$) |> z($$) any random string a() |> b($$) |> c($$)"
output -> vec[
"x() |> y($$) |> z($$)",
"a() |> b($$) |> c($$)"
] // this contains two groups of expressions.
I'm not sure if this is possible via regex. Can anyone help me with the regex expression if possible? Thanks