regular expressions help

David bouncingcats at gmail.com
Thu Sep 19 03:54:13 EDT 2019


On 2019年9月19日 at 17:51, Pradeep Patra <smilesonisamal at 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?


More information about the Python-list mailing list

AltStyle によって変換されたページ (->オリジナル) /