Test, validate and match regular expressions
This regex matches jQuery/Corequery-style patterns including chained selectors ending with dots (like '.class.' or 'element.') and function calls with arguments (like 'click(...)' or 'keyup(...)'). With global and unicode flags, it's useful for parsing event binding templates or extracting method calls from jQuery-style code snippets.