On Thu, 19 Sep 2019 at 17:51, Pradeep Patra <smilesonisa...@gmail.com> wrote: > > pattern=re.compile(r'^my\-dog$') > matches = re.search(mystr) > > In the above example both cases(match/not match) the matches returns "None"
Hi, do you know what the '^' character does in your pattern? -- https://mail.python.org/mailman/listinfo/python-list