multiple conditions using eregi_replace, help needed please
Posted: Fri Feb 14, 2003 9:24 am
Hello, If anyone could answer this that would be much appreciated the problem is as such. i need to strip the front and end of a variable off
$sku="00-R2-1001XL";
eregi_reaplace ('(00-)?','',$sku);
This manages to strip the 00- off.
eregi_reaplace ('X*[SML]$','',$sku);
This manages to stip the size denomintor off the variable
HOW DO I COMBINE BOTH IN ONE EREGI_REPLACE COMMAND?
THANKS

$sku="00-R2-1001XL";
eregi_reaplace ('(00-)?','',$sku);
This manages to strip the 00- off.
eregi_reaplace ('X*[SML]$','',$sku);
This manages to stip the size denomintor off the variable
HOW DO I COMBINE BOTH IN ONE EREGI_REPLACE COMMAND?
THANKS