My use case is as follows: I would like to find all occurrences of something similar to this /name.action
, but where the last part is not .action
eg:
- name.actoin - should match
- name.action - should not match
- nameaction - should not match
I have this:
/\w+.\w*
to match two words separated by a dot, but I don't know how to add 'and do not match .action'.