Regular expression woes

(Continuation of this thread: http://www.unix.com/shell-programming-scripting/136423-sed-regular-expression-problem.html\)

how would I replace a line that contains only a number, e.g. 6.00, with another number stored in variable $bulksize or $half ?

I guess I don't understand all the parts in this regular expression
'187s/= [^,]*/= %s/\nwq\n'

I know 187 is the line number, the s after that is substitution, and ^, matches a comma in the beginning? Or anything that's not a comma? Not sure what the rest of it means... where can I find a good reference for this?

Thanks!!

Double post of:

Thread closed.