Hi all,
I'm not a great regex specialist so I hope I could find some
help
here.
I'm not totally new to them, but this time is far more
complicated...
I use Perl regular expressions in PHP and I can't manage how
to remove
newlines (n) in my HTML tables. Here's an example of what
I'd like to
do :
INPUT:
Once upon a time...
In Far Far Away Kingdom...
<table>
<tr>
<td>
Shrek
</td>
</tr>
</table>
OUTPUT:
Once upon a time...
In Far Far Away Kingdom...
<table><tr><td>Shrek</td></tr>
</table>
Here is what I tried (among other things), but of course,
that doesn't
work :
preg_replace('/(?<=<table>)n(?=</table>
)/', '', $sText)
Thank you in advance for your help
Alexandre
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Regex" group.
To post to this group, send email to regex googlegroups.com
To unsubscribe from this group, send email to
regex-unsubscribe googlegroups.com
For more options, visit this group at http://groups.go
ogle.com/group/regex
-~----------~----~----~----~------~----~------~--~---
|