`
tin555
  • 浏览: 3665 次
  • 来自: ...
最近访客 更多访客>>
文章分类
社区版块
存档分类
最新评论

求一正则发表式的方法。急。

阅读更多
                <tr class="table_main_tr">
                <td width="20%" align="right">最后毕业学校:</td>
                <td width="30%"><html:text property="last_school" size="20" /><font color="#FF0000">&nbsp;</font></td>
                <td width="20%" align="right">最后毕业时间:</td>
                <td width="30%"><html:text property="last_graduate_date"  size="20" readonly="true"/><img
                              src="<%=rootpath%>/sys_resource/images/date.gif" width="16" height="16" border="0" align="absmiddle" onClick="getDate('last_graduate_date',1);"> <font color="#FF0000">&nbsp;</font></td>
                </tr>


这几天在做struts国际化。。想将现在的系统改成国际化,
上面是我的页面。我想写一个正则表达式。第一提取中文,第二提取如<html:text property="last_graduate_date" 中的last_graduate_date,这样的。
我现在只搞定出提取中文的[\u4e00-\u9fa5]+,第二个提取的是<html:text.*property=([\\""\']?)(.\S+)\1.*>,
但是我想写一个表达式。分组提取出中文和last_graduate_date属性名。取出来是对应起来的。
<td>和<html:text这中间有可能会有其他的标签的。还有。上面的换行了的。有可能是不换行。我要怎么写这个正则
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics