晕了 ,求个正则表达式 php的, 在线等....
本帖最后由 cluonani 于 2013-05-21 15:15:17 编辑
html是这样的
<br />
<br />
<div class="itemCartContaine"><br />
<input type="radio" name="BTN_GROUP_59679208328481" value="22334875:SHIP_TO_HOME:1" onclick=""><br />
<input type="radio" name="BTN_GROUP_59679208328481" value="22334875:SHIP_TO_HOME:2" onclick=""><br />
<input type="radio" name="BTN_GROUP_59679208328481" value="22334875:SHIP_TO_HOME:3" onclick="" checked=""><br />
<textarea id="IncludeMessage" name="TEXTAREA_59679208328481" onclick="WALMART.checkout.shipping.giftMsgOnClick(this);" onkeyup="WALMART.checkout.shipping.giftMsgLimiter(this, 59679208328481)">Enter your gift message here</textarea><br />
</div><br />
<br />
<div class="itemCartContaine"><br />
<input type="radio" name="BTN_GROUP_59679208328482" value="22334876:SHIP_TO_HOME:1" onclick=""><br />
<input type="radio" name="BTN_GROUP_59679208328482" value="22334876:SHIP_TO_HOME:2" onclick="" checked=""><br />
<input type="radio" name="BTN_GROUP_59679208328482" value="22334876:SHIP_TO_HOME:3" onclick=""><br />
<textarea id="IncludeMessage2" name="TEXTAREA_59679208328482" onclick="" onkeyup="">Enter your gift message here2</textarea><br />
</div><br />
<br />
로그인 후 복사
想些个正则表达式,得到结果大约是这样的.死活写不出.功夫不到家..
求大神,取得单选框匹配checked的值和下面textarea的值,最后想要的的大约是这样的
<br />
[1] => Array<br />
(<br />
[0] => BTN_GROUP_59679208328481<br />
[1] => BTN_GROUP_59679208328482<br />
[2] => TEXTAREA_59679208328481<br />
[3] => TEXTAREA_59679208328482<br />
)<br />
<br />
[2] => Array<br />
(<br />
[0] => 22334875:SHIP_TO_HOME:3<br />
[1] => 22334876:SHIP_TO_HOME:2<br />
[2] => Enter your gift message here<br />
[3] => Enter your gift message here2<br />
)<br />
로그인 후 복사
就用is,不用isu
可以实现吗