/\b\d{1,2} de [a-z]+ (de 1\d{3}|del 2\d{3})/i
설명 :
\b ... requires a word boundary, since the following character is a digit
(and thus a word character) this will only match if the date is
preceded by a character that is not a letter, not a digit and
not an underscore
\d{1,2} ... one or two digits
de ... literally "de"
[a-z]+ ... any letter from a-z, at least once but an arbitrary number of times
(de 1\d{3} ... literally "de" followed by "1" and 3 more digits
| ... or
del 2\d{3}) ... literally "del" followed by "2" and 3 more digits
i ... make the whole thing case-insensitive (you can omit this if needed)
는 또한 정규식의 모든 공간이 다른 모든 문자처럼 취급되는 것을주의.
또는 대신 [a-z]+
의 당신은
/\b\d{1,2} de (...|septiembre|...) (de 1\d{3}|del 2\d{3})/i
(구분하기 위해 더 많은 달 이름으로 ... |
교체)
~ ((\ d를 {1 등의 유효 개월의 목록을 지정할 수 있습니다 , 2}) de ([az] +) (del?) (\ d {4})) ~ –