L
lavu
I am trying to form a regex to search my string and give me substrings
follwing the pattern that it
split the string at every occurence of hyphen - character but not if a
\ precedes it.
ie. if a string is like this:
-xyz -rer\-er -fgg12\-33
I want to get foll. substrings using the regex.split method
-xyz
-rer\-er
-fgg12\-33
I am new to regex and have been trying some combinations with no
success. Any help will be appreciated.
follwing the pattern that it
split the string at every occurence of hyphen - character but not if a
\ precedes it.
ie. if a string is like this:
-xyz -rer\-er -fgg12\-33
I want to get foll. substrings using the regex.split method
-xyz
-rer\-er
-fgg12\-33
I am new to regex and have been trying some combinations with no
success. Any help will be appreciated.