I have following couple of lines:
- The Great Gatsby (1925) by F. Scott Fitzgerald is a short novel which takes.
- Fight Club is a 1996 novel by Chuck Palahniuk.
I have to pick writer name that comes after by and year it was written; 1925 and 1996 respectively. What I figured, I need a couple of RegEx; one for picking numbers only by doing \d+
and other for picking writer name. For Writer I made this regex(https://regex101.com/r/Z55yz3/1) but it is not working as it should due to presence of .
and space.