How is it possible to combine a captured group with positive lookbehinds?
I want to match the following examples:
DS DS,x=y Some DS,key=value Some DS test,key=value&key2=value2 Some DS test,key=value&key2=value2|key3=value3
I came up with the following regex for matching everything but the comma:
^(?P<ds_title>[\w \|\-\=\&æøåÆØÅ]+)(?P<filters>[\w \|\-\=\&æøåÆØÅ]+)?$
I've figured out, that the regex I would need to insert is:
(?<=\,)
But I cannot figure out where to insert it. No matter where I insert it, it seems to break. Does anyone know how this can be done correctly?