I have a text file which contains names enclosed in single quotes. How do i do a regex to get all the names the text contains ?
- "Lady of Spain" (uncredited)
Music by 'Tolchard Evans' (qv)
Lyrics by 'Robert Hargreaves (II)' (qv), 'Stanley Damerell' (qv) and 'Henry B. Tilsley' (qv)
Performed by 'Jack Haig' (qv) and 'Kenneth Connor' (qv)
Here is what I could come up with.
/(\'(.*)\')*/
However, the period matches only till the newline. so i modified the regex to include
/(\'(.*)\'.*(\n|\r\n)*)*/
But its still not wokring. Please help me figure out why my regex isnt working.
I’d use
splitinstead:outputs: