Change first occurence

I'm not getting the syntax correct to change a line only on the first occurrence:

I've tried to change only the first match and I've tried to change the from the second match forward

sed    's/<B>PT#/<tr><td class=\"pt1\" width=\"40%\"><B>pt#/1'  $file > tmpfile.html

sed    's/<B>PT#/<tr><td class=\"pt1\"><B>pt#/2g'  $file > tmpfile.html

but neither is working correctly for me. Help appreciated.

---------- Post updated at 08:34 AM ---------- Previous update was at 07:42 AM ----------

This worked

sed    '1,/RE/s//to_that/'

T