I have these two strings:
s = t
[ f ] s = t
and processing each with regex using this pattern:
(?<=]).*(?==|:)
My goal is trying to retrieve the " s " part (between the "]" and "=")
, though the "[ f ]" is optional
, as you can see in the first line.
I've tried many different patterns found online and used by others, also spent the last 2 hours trying to figure this out with references, search engines, trial and error, but to no success.
How would I achieve this? What pattern would I need to achieve this?