Web Hosting Talk







View Full Version : PHP regex help please!


chilliboy
12-02-2000, 10:41 AM
Hi,

I dabbling with a bit of code and was wondering if there is an alternative to the expression: (.*) which could be used in this line of code:

$grab = eregi("$GrabStart(.*)$GrabEnd", $rf, $printing);

I understand (.*) this will take everything between $GrabStart and $GradEnd

QU - is there an alternative expression which will grab everything between and INCLUDING $Grabstart and $GrabEnd?

Would this work???? "($GrabStart(.*)$GrabEnd)",