title: Python - .split(), - two arguments
body: <p>I need to make a modification on a python code.</p>
  <p>This code scrapes information from a .csv file, to finally integrate it in a new .csv file, in a different structure.</p>
  <p>In one of the columns of the source files, I have a value (string), which is in 99% of the time formed this way: 'block1 block2 block3'.</p>
  <p>Block2 always ends with the value 'm' 99% of the time.</p>
  <p>example: 'R2 180m RFT'.</p>
  <p>By browsing the source dataset, I realized that in 1% of the cases, the block2 can end with 'M'.</p>
  <p>As I need all the values after the 'm' or 'M' value, I'm a bit stuck.</p>
  <p>I used the .split() function, like this in my :</p>
  <pre><code>'Newcolumn': getattr(row_unique_ids, 'COLUMNINTHEDATASET').split ('m') [1],
  </code></pre>
  <p>By doing so, my script falls in error, because it falls on a value of this style :
  R2 180<strong>M</strong> AST'.</p>
  <p>So I would like to know how to integrate an additional argument, which would allow me to make the split work well if the script falls on 'm' or 'M'.</p>
  <p>Thank you for your help.</p>