JSFiddle - React, Tailwind, and code Playground
HTML
<p>MAR/26/2013</p>
<p>Blah</p>
JavaScript
$('p').each(function() {
var month = $(this).text().match(/[^\/]*/)[0];
var months = {
MAR: 3
};
alert(months[month].toString());
});