c# regex required
I am very poor in regex,  i would appreciate if someone helps in this regex

Regex should match :-  any text before first forward-slash else full text, and then text that is not inside braces

    HELLO/anything/blah/bhah ---------> should return HELLO 
    {HELLO}/anything/blah/bhah -------> should not return any thing
    ABC/blah/blah---------------------> should return ABC
    ABC-------------------------------> should return ABC




c# regex required
===

I am very poor in regex,  i would appreciate if someone helps in this regex

Regex should match :-  any text before first forward-slash else full text, and then text that is not inside braces

    HELLO/anything/blah/bhah ---------> should return HELLO 
    {HELLO}/anything/blah/bhah -------> should not return any thing
    ABC/blah/blah---------------------> should return ABC
    ABC-------------------------------> should return ABC



