How would I match 'ber' to the end so it picks up 'ber/sunday/wednesday'
monday/october/sunday/wednesday
How would I match 'ber' to the end so it picks up 'ber/sunday/wednesday'
monday/october/sunday/wednesday
/ber.*/
for one-line string
/ber.*?$/m
for multiline string, where ber
can be not in the first line