I need help with a preg-pattern for preg_replace_callback().
I need to match td(+all properties) and replace them with td
id=$counter.
This is as far as I have come in my code:
?php
$html = 'table border=1 id=myTable
tr
td
table border=1
tr
td width=20tabell2 cell1/td
td width=40tabell2
Hi,
What about:
$string = preg_replace(/(td)[^]*/,\\1 id={$counter},$string);
atur
- Original Message -
From: Tobias Talltorp [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, September 09, 2003 6:35 PM
Subject: [PHP] PREG-pattern, help needed
I need help with a preg-pattern
2 matches
Mail list logo