regular expression
| From: | Cody Caughlan | Date: | Mon, 30 Oct 2000 23:38:19 +0000 |
| Subject: | regular expression | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-22779@lists.php.net to get a copy of this message | ||
Hello,
I have the PERL regexp that I am triying to implement in PHP and I am
having a hard time, anybody have any ideas?
$str =~ s/(\w{$len})/$1-<BR>/g;
This replaces every $len characters of $str with a hyphen and HTML
newline.
I tried using various preg_match() calls and I just couldnt get it to
work..
Thanks in advance,
/Cody Caughlan