preg_match
| From: | richard dot mail at softhome dot net | Date: | Wed, 28 Aug 2002 07:39:41 +0000 |
| Subject: | preg_match | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-114331@lists.php.net to get a copy of this message | ||
hi all,
i'm trying to create an script that cut's the text when a "." ( dot ) is found in one of the last words..
i'm trying it with preg_match but it seems not to work.
this is what i'm trying :
if($i==15) {
if(preg_match("/./",$text2[15])) {
$text3 .= "($i $text2[15] )";
break;
}
}
could some one tell me what i'm doing wrong?
thnx