instaparse

Akiz 2023-11-30T18:40:10.472259Z

Hi, I am trying to use lookahead

(re-find #"(?![\"]).*(?=[\"])" "\"a\"")
=> "a"
But when I use the same rule in Instaparser I get an error. Can you help me here please?
(instaparser "\"a\"")
Parse error at line 1, column 1:
"a"
^
Expected one of:
#"(?![\"]).*(?=[\"])"
Edit: but this works <'\"'> #'([a-zA-Z0-9_\\s]*)' <'\"'> Edit2: I solved it via string = <'\"'> #'[\\s\\S]'* <'\"'> and then i am joining all characters in transformation.

Akiz 2023-11-30T23:00:20.402429Z

But that is still too greedy in some situations, this is harder than I thought.

Akiz 2023-12-01T09:35:33.556469Z

This is what i will use in the end 🙂 <'\"'> #'[^\"]*'? <'\"'>;