嘿家伙们,所以我正在制作一个脚本来捕捉这个网站上的单词/结果(http://grecni.com/texttwist.php),所以我已经准备好了http请求,等等。帮助正则表达式/红宝石
我唯一现在需要的是获取出来的话,所以我用一个看起来像这样的HTML源代码的工作:
<html>
<head>
<title>Text Twist Unscrambler</title>
<META NAME="keywords" CONTENT="Text,Twist,Text Twist,Unscramble,Free,Source,php">
</head>
<body>
<font face="arial,helvetica" size="3">
<p>
<b>3 letter words</b><br>sae sac ess aas ass sea ace sec <p>
<b>4 letter words</b><br>cess secs seas ceca sacs case asea casa aces caca <p>
<b>5 letter words</b><br>cacas casas caeca cases <p>
<b>6 letter words</b><br>access <br><br>
Found 23 words in 0.22962 seconds
<form action="texttwist.php" method="post">
enter scrambled letters and I'll return all word combinations<br>
<input type="text" name="l" value="asceacas" size="20" maxlength="20">
<input type="submit" name="button" value="unscramble">
<input type="button" name="clear" value="clear" onClick="this.form.l.value='';">
</form><p>
<a href=texttwist.phps>php source</a>
- it's kinda ugly, but it's fast<p>
<a href=/>back to my page</a>
</body>
</html>
我试图获取诸如“SAE” “sav”,“secs”,“seas”,“casas”等。
任何帮助?
这是最远的我已经得到了,不知道是什么,从这里做:link text
有什么建议?帮帮我?
你需要看看这个问题:http://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags/1732454#1732454 – 2010-07-31 23:42:41