python regex

re.match:ide

  match from the beginning of the stringstring

re.search:search

  scan through the whole string to find a matcharc

dash '-' inside square '[]' means a range. put dash in the end to just match a dash

相關文章
相關標籤/搜索