im kinda new at this
the \'s are to escape any chars that might be messing up the regexp. i might have some unnecessary ones in there.
all i'm trying to do is say:
take this chunk of html and cut it into an array of strings, using EITHER of the open table tags as described above.
I have since found a way around it by just doing this
$str = eregi_replace ( '<table width=100% cellpadding=3 border=0 cellspacing=0 bgcolor="#EFEFEF">', '[###SPLIT###]<table>' , $str);
$str = eregi_replace ( '<table width=100% cellpadding=3 border=0 cellspacing=0 bgcolor="#FFFFFF">', '[###SPLIT###]<table>' , $str);
and then doing a single regexp like this:
$tables = preg_split ("/[###SPLIT###]/", $str);
... which is probably quicker since regexps (so ive heard) take more cpu than string replaces.
... but i'd still like to know how to do an OR style regexp!
thanks,
rdrnnr