Can someone tell me how to do a pattern matching using eregi function of PHP, to find out whether a string has "bgcolor='#"
or 'bgcolor="#' or 'bgcolor=# patterns.
I tried using :
eregi("bgcolor=[\'|\"]#", $line)
or
eregi("bgcolor=[\"\']#", $line)
But no result achieved.
it seems i am going wrong in some quotes ot bracket combinations.
Can someone help me with this trivial problem ?
And also i would appreciate if someone can send me all possible pattern matching combinations possible with ereg function. There are very few listed in the PHP manual. Might someone suggest the PHP developers to put more examples there in the manual.
Thanks in advance.
Bijal Kothari.