Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

reg expression 2

Status
Not open for further replies.

ksbrace

Programmer
May 13, 2000
501
US
Hello,
I'm attempting to get the question marks between > ?????????????? </a> </font>

Obviously, they will be sentences containing words, numbers and symbols.

This is what I have:
Code:
preg_match ("/>\"([^`]*?)\"</a> </font>/", $match, $temp);

 
This:

Code:
<?php
$a = ">'twas brillig and the slithey toves </a> </font>";

preg_match ('@>([^<]*)</a>@', $a, $match);

print '<html><body><pre>';
print_r ($match);
print '</pre></body></html>';
?>

outputs:

[tt]Array
(
[0] => >'twas brillig and the slithey toves
[1] => 'twas brillig and the slithey toves
)[/tt]



Want the best answers? Ask the best questions! TANSTAAFL!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top