I wanted to filter facets name based on regular expression. I have an idea of facet.prefix element and im expecting an similar feature to find facets by providing keywords that can be somewhere in between the whole work.
example :- facets country["united states","west indies","india"]. required feature: search all facets name containing "ind" keyword. resulting "west indies" and "india".
(?<=")[a-zA-z -]*ind[a-zA-z -]*(?=")
will do it for you, dont know what sort of exceptions will you have in your data
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With