I need to validate a filter entered by user!
As an example consider I have a textf
contains a filter expression
<$vars textf="[tag[demo]]" pattern="^\[.*\]$">
<$list filter="[<text>regexp<patern>]" emptyMessage="No it is not">
Yes, this is a filter
</$vars>
The above code partially works! for example for the below textf it returns wrong result
textf= "[tag[demo[]" ------> unbalance [
textf=[tag[demo]addprefix<a] ------> unbalance <
...
what is the correct filter pattern to validate a filter entered by user!
I think inside filter we should balance
`<>`
`{}`
`[]`
and filter starts with `[` and ends with `]`