Re: [PHP] substr() on part an ereg() capture

2003-03-26 Thread Marek Kilimajer
Forgot to mention this is to be run after eregi_replace(([[:alnum:]]+)://([^[:space:]]*)([[:alnum:]#?/=]), a href=\\\1://\\2\\3\ {$t}\\\1://\\2\\3/a, $str); as it only replaces long strings within a tags Marek Kilimajer wrote: $str = preg_replace('|(a[^]*[^]{55})[^]+(/a)|','$1...$2', $str);

Re: [PHP] substr() on part an ereg() capture

2003-03-26 Thread Justin French
A that makes more sense!! Am trying everyone's suggestions now... Justin French on 27/03/03 3:32 AM, Marek Kilimajer ([EMAIL PROTECTED]) wrote: Forgot to mention this is to be run after eregi_replace(([[:alnum:]]+)://([^[:space:]]*)([[:alnum:]#?/=]), a href=\\\1://\\2\\3\

[PHP] substr() on part an ereg() capture

2003-03-25 Thread Justin French
Hi, I have this ereg to turn URLs into links: eregi_replace(([[:alnum:]]+)://([^[:space:]]*)([[:alnum:]#?/=]), a href=\\\1://\\2\\3\ {$t}\\\1://\\2\\3/a, $str); ... found it in the manual i think, or maybe on weberdev.com examples Anyhoo, it places the whole link in between the a... and /a,

Re: [PHP] substr() on part an ereg() capture

2003-03-25 Thread skate
() on part an ereg() capture Hi, I have this ereg to turn URLs into links: eregi_replace(([[:alnum:]]+)://([^[:space:]]*)([[:alnum:]#?/=]), a href=\\\1://\\2\\3\ {$t}\\\1://\\2\\3/a, $str); ... found it in the manual i think, or maybe on weberdev.com examples Anyhoo, it places the whole

RE: [PHP] substr() on part an ereg() capture

2003-03-25 Thread Boaz Yahav
To: php Subject: [PHP] substr() on part an ereg() capture Hi, I have this ereg to turn URLs into links: eregi_replace(([[:alnum:]]+)://([^[:space:]]*)([[:alnum:]#?/=]), a href=\\\1://\\2\\3\ {$t}\\\1://\\2\\3/a, $str); ... found it in the manual i think, or maybe on weberdev.com examples Anyhoo

Re: [PHP] substr() on part an ereg() capture

2003-03-25 Thread Marek Kilimajer
$str = preg_replace('|(a[^]*[^]{55})[^]+(/a)|','$1...$2', $str); Justin French wrote: Hi, I have this ereg to turn URLs into links: eregi_replace(([[:alnum:]]+)://([^[:space:]]*)([[:alnum:]#?/=]), a href=\\\1://\\2\\3\ {$t}\\\1://\\2\\3/a, $str); ... found it in the manual i think, or maybe on