Obtenir la chaîne et le regex de l'objet correspondant

import re
 
s = "Welcome to Softhunt"
 
# here x is the match object
res = re.search(r"\bS", s)
 
print(res.re)
print(res.string)
Outrageous Ostrich