See this link: https://dev.to/xowap/the-string-matching-regex-explained-step-by-step-4lkp