instaparse 2022-02-02

Hi All, I’m trying to understand a failure related to trying to exclude ā€œ[ā€ via regex negation

this grammar snippet

<unquoted-literal> ::= #"[^()\[\s]+"

triggers insta/failure? to return true but there is no info provided

<unquoted-literal> ::= #"[^()\s]+"

and it seems to be fine from a clojure/jvm regex perspective

(re-find #"[^\[]+" "[foo]")
=> "foo]"
(re-find #"[^()\[]+" "[foo]")
=> "foo]"
(re-find #"[^()\[\s]+" "[ foo]")
=> "foo]"

(im totally open to other/better ways to parse this outside of regex, too

any help appreciated

nm, i figured it out