Posthyphen

Report a typo

You need to define a regexp pattern using assertions that returns a word following a hyphen -.

Sample Input 1:

cat-dog

Sample Output 1:

dog
Write a program in Python 3
import re

string = input()
# your code here
___

Create a free account to access the full topic