I have a string of name|value pairs:
'clientName|img_0196.jpg||mime|||size|3195562||serverFileName|uplo/ad/548a5b35003bf.img_0196.jpg'
I'm trying to extract the value of the clientName, i.e. img_0196.jpg, with:
clientName := substring(eml from '%clientName.#"[^|]+#"%' for '#');
I've tried lots of patterns (different escaping of '|'), but they all yield either NULL or 'clientName'.
Help greatly appreciated.
regexp_split_to_table()).#characters look weird too -- not too sure what you're hoping to do with those.