2012-02-10
//在HTML中取<a>到</a>//Stringregex=//(<a\s+([^>h]|h(?!ref\s))*href[\s+]?=[\s+]?(|))([^(\s+||)]*)([^>]*>)(.*?)</a>;//在<a></a>中取href//String//regex=(?<=[... 查看详细
2011-01-24
importjava.util.regex.*;classRegex1{ publicstaticvoidmain(Stringargs[]){ Stringcontent=Formymoney,theimportantthing+aboutthemeetingwasbridge-building; StringregEx=a|f;//表示a或f Patternp=Pattern.compi... 查看详细