Fixed problems with compatibility clog and cpow
Replace fixed expression with regexp to deal with unspecified +/-