title: Python regex to match punctuation at end of string
body: <p>I need to match if a sentence starts with a capital and ends with [?.!] in Python.</p>
  
  <p><strong>EDIT</strong> It must have [?.!] <strong>only</strong> at end <strong>but allow other punctuation in the sentence</strong></p>
  
  <pre><code>import re
  s = ['This sentence is correct.','This sentence is not correct', 'Something is !wrong! here.','"This is an example of *correct* sentence."']
  
  # What I tried so for is:
  for i in s:
      print(re.match('^[A-Z][?.!]$', i) is not None)
  </code></pre>
  
  <p>It does not work, after some changes I know the <code>^[A-Z]</code> part is correct but matching the punctuation at the end is incorrect.</p>