def SetRegEx(ea, reg, value, tag):
    reg = idaapi.str2reg(reg);
    if reg >= 0:
        return idaapi.splitSRarea1(ea, reg, value, tag)
    else:
        return False
Set value of a segment register.
dataset/ETHPy150Open EiNSTeiN-/idapython/python/idc.py/SetRegEx