I'm trying to write a regex to filter out parameters of a handlebars call:
example call:
117-tooltip classes=(concat (concat "productTile__product-availability " classes) " tooltip--small-icon productAvailability__tooltip") bla=(concat "test" "test2")
what my matches should be:
- classes=(concat (concat "productTile__product-availability " classes) " tooltip--small-icon productAvailability__tooltip")
- bla=(concat "test" "test2")
what my matches currently are:
- (concat (concat "productTile__product-availability " classes) " tooltip--small-icon productAvailability__tooltip")
- (concat "test" "test2")
my regex:
\((?>[^()]|(?R))*\)
I need to extend it so the structure must be something=(...(...)..) with an unknown number of matching parentheses.
How do I need to extend the regex to get the x= part also into it?