How can i get a string after a special character?
For example I want to get the string after /
in
my_string = "Python/RegEx"
Output to be : RegEx
I tried :
h = []
a = [ 'Python1/RegEx1' , 'Python2/RegEx2', 'Python3/RegEx3']
for i in a:
h.append(re.findall(r'/(\w+)', i))
print(h)
But the output is : [['RegEx1'], ['RegEx2'], ['RegEx3']]
I need : ['RegEx1', 'RegEx2', 'RegEx3']
Thanks in advance
RegEx beginner