'|<td class="lName" colspan="2">(.+?)</td>|si'
looks for <td class="lName" colspan="2"> grabs all characters (.+?) including newlines (hence the 's' modifier) between </td>
Main Topics
Browse All TopicsI'm trying to strip down this code so the result is CHROME SALON... I need to get rid of everything else including tabs, whitespaces etc... I've been fooling around with some reg ex but I'm really new to this and it's driving me crazy... I figured out how to do everything seperatly but I'm not sure how to group those together so in one pass it will strip everything out... can you help me out and please explain how you constructed the regex... thanks a lot:
<td class="lName" colspan="2">
CHROME SALON
</td>
<td class="lPhone" align="right">
my reg ex: (<td\sclass="lName"\scolsp
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
preg_match_all('|<td class="lName" colspan="2">(.+?)</td>|si'
print_r($matchs[1]);
iwll be PHP method, I use UltrEdit too and their regex searching is kinda odd and I dont use it. Here is their syntax http://www.ultraedit.com/i
Business Accounts
Answer for Membership
by: CrYpTiC_MauleRPosted on 2005-09-20 at 21:24:41ID: 14925699
why not use strip_tags() ?
, $string, $match);
<?php
$string = ' <td class="lName" colspan="2">
CHROME SALON
</td>
<td class="lPhone" align="right">';
echo trim(strip_tags($string));
// OR YOU CAN DO THIS
preg_match('|<td class="lName" colspan="2">(.+?)</td>|si'
echo trim($match[1]);
?>