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