You can use this regex,
[:=]\s*(.*)
And get your value from group1
This regex starts by capturing either : or = and then optionally \s* matches optional space and then (.*) captures the remaining text in the line and captures in group1
Regex Demo
Python code,
import regex as re
arr = ['Choice values selected: Option 1, or Option 2, or Option 3','Choice value selected: Option 1, or Option 2, or Option 3','Choice value selected = Option 1 , or Option 2, or Option 3']
for s in arr:
m = re.search(r'[:=]\s*(.*)', s)
if m:
print(s, '-->', m.group(1))
Output,
Choice values selected: Option 1, or Option 2, or Option 3 --> Option 1, or Option 2, or Option 3
Choice value selected: Option 1, or Option 2, or Option 3 --> Option 1, or Option 2, or Option 3
Choice value selected = Option 1 , or Option 2, or Option 3 --> Option 1 , or Option 2, or Option 3
Also, in case you want to use re.split then you can split it using [=:] regex which represents either = or :
import regex as re
arr = ['Choice values selected: Option 1, or Option 2, or Option 3','Choice value selected: Option 1, or Option 2, or Option 3','Choice value selected = Option 1 , or Option 2, or Option 3']
for s in arr:
r = re.compile(r'[:=]')
print(r.split(s)[1])
Output,
Option 1, or Option 2, or Option 3
Option 1, or Option 2, or Option 3
Option 1 , or Option 2, or Option 3
re.splitshould be enough @alannaC