regex - Pattern for month with low and capital letters -
i have following strings:
emini mar 15 me emini ice mar 15 rta emini abc apr 15 rta
and use pattern:
[\s]*(jan|feb|mar|apr|may|jin|jul|aug|sep|oct|nov|dec)+(\s+\d{1,2})
how create short pattern instead ...(jan|jan|jan|feb|feb|feb...) etc. in advance
just add case-insensitive modifier i
(?i)\s*(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)+(\s+\d{1,2})
Comments
Post a Comment