I want to detect job and jobs in a piece of text. So The jobs report came out and it was a great job! should match job twice and jobs once.
If I do:
const res = str.matchAll(/job|jobs/gi)
Then it matches jobs once and job once. How can I modify it to do what I want?
UPDATE
Ultimately, I have a lot more like /job|jobs|get\sa\sjob/