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.But that is still too greedy in some situations, this is harder than I thought.
This is what i will use in the end 🙂
<'\"'> #'[^\"]*'? <'\"'>;