I have this code.
$courses = "<br>ACCT 111<br>BMAT 182<br>COMM 151 <br>MGMT 161<br>MICO 191 <br><br><b>Winter</b> <br>ACCT 113<br>BMAT 183<br>COMM 175+ <br>MICO 193<br>MKTG 171<br><br>Accounting Major*<br><b>Fall</b> <br>ACCT 211<br>ECON 201<br>FINA 254<br>SGMA 395<br>"
$str = ereg_replace("$name<br>", <b>$name</b><br> ,$courses);
where $name = ACCT 111,BMAT 182, COMM 151 ... ect.
I need to check for a wild card cases.
For example
ACCT 111, ACCT 111+,ACCT 111*, ACCT 111 , will all be accepted and changed.
Again, Thanks in advance.
, $str);