title: Match column with its own regex in another column Python
body: <p>How to match data column with its own regex in another column. Here is how it looks like.</p>
  
  <pre><code>        Data            Regex
  0   HU13568812       ^HU[0-9]{8}
  1   78567899         ^NO[0-9]{5}
  2   AT1234567        ^HU[0-9]{7}
  </code></pre>
  
  <p>The output will be a new column for the result if its match (1)  or not match (0) like this.</p>
  
  <pre><code>            Data            Regex     Match
  0   HU13568812       ^HU[0-9]{8}        1
  1   78567899         ^NO[0-9]{5}        0
  2   AT1234567        ^AT[0-9]{7}        1
  </code></pre>
  
  <p>I tried to use re.match() but I can't seem to get it match for the whole row at once. Is there any better way to do this in a simple function or more pythonic way? Thank you.</p>