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

Popular posts from this blog

android - Gradle sync Error:Configuration with name 'default' not found -

java - Andrioid studio start fail: Fatal error initializing 'null' -

html - jQuery UI Sortable - Remove placeholder after item is dropped -