ps: `#^\+?(0x?)?(.*)([kmg]?)#` was not working, I replaced it whith `#^\+?(0x?)?([^kmg]*)([kmg]?)#`.