PHP 정규식을 사용하여 다음 샘플에서 날짜 문자열의 위치를 얻는 방법은 무엇입니까?PHP에서 정규식을 사용하여 날짜 문자열 위치를 얻는 방법
예를 들어, "2011 년 12 월 31 일"또는 "2011 년 12 월 31 일"의 위치를 알고 싶습니다. 날짜 형식은 "년 월 일"또는 "월 일 년"입니다
<TR>
<TD VALIGN="top" ALIGN="center"><FONT STYLE="font-family:Times New Roman" SIZE="2"><B>December 31, 2011</B></FONT></TD></TR>
</TABLE> <P STYLE="margin-top:0px;margin-bottom:0px" ALIGN="center"><FONT STYLE="font-family:Times New Roman" SIZE="1"><B>(Date of Event Which Requires Filing of this Statement) </B></FONT></P>
<P STYLE="font-size:12px;margin-top:0px;margin-bottom:0px"> </P><center> <P STYLE="line-height:6px;margin-top:0px;margin-bottom:2px;border-bottom:1pt solid #000000;width:21%"> </P></center> <P STYLE="margin-top:12px;margin-bottom:0px"><FONT
STYLE="font-family:Times New Roman" SIZE="2"><B>Check the appropriate box to designate the rule pursuant to which this Schedule is filed: </B></FONT></P> <P STYLE="margin-top:12px;margin-bottom:0px; margin-left:8%"><FONT
STYLE="font-family:Times New Roman" SIZE="2"><B></B><FONT STYLE="FONT-FAMILY:WINGDINGS">x</FONT><B></B><B> Rule 13d-1 (b) </B></FONT></P> <P STYLE="margin-top:12px;margin-bottom:0px; margin-left:8%"><FONT
STYLE="font-family:Times New Roman" SIZE="2"><B></B><FONT STYLE="FONT-FAMILY:WINGDINGS">¨</FONT><B></B><B> Rule 13d-1 (c) </B></FONT></P> <P STYLE="margin-top:12px;margin-bottom:0px; margin-left:8%"><FONT
STYLE="font-family:Times New Roman" SIZE="2"><B></B><FONT STYLE="FONT-FAMILY:WINGDINGS">¨</FONT><B></B><B> Rule 13d-1 (d) </B></FONT></P> <P STYLE="font-size:12px;margin-top:0px;margin-bottom:0px"> </P>
<TABLE STYLE="BORDER-COLLAPSE:COLLAPSE" BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="100%">
<TR>
감사합니다! 나는 아직도 w + mean을 알고 싶다. \ d {1,2}는 무엇을 의미합니까? d {4}는 무엇을 의미합니까? –
그건 당신이 언급 한 것과 같은 날짜 문자열과 일치하는 '정규식'패턴입니다. 정규 표현식은 설명문으로 설명하기에는 너무 복잡하지만 http://php.net/manual/en/book.pcre.php에서 자세한 내용을 배울 수 있습니다. –