gkz / grasp

JavaScript structural search, replace, and refactor
http://graspjs.com
MIT License
1.28k stars 33 forks source link

Regex support in equery #54

Closed mquandalle closed 7 years ago

mquandalle commented 9 years ago

squery support regular expressions to match identifier following a given pattern, eg #/re/. Is this also something possible using the equery syntax?

I'm trying to match a set of properties for a given object MyObject.$x where {{x}} is either prop1, prop2 or prop3.