regular expression : the dollar sign ($) work with re.match() or re.search() ？
<p>I only know  the dollar sign <code>$</code> will match a pattern from the
end of a string, but which method does it work with, <code>re.match()</code> or <code>re.search()</code>？</p>
