hello big red cat
hello big red dog
hello yellow bird
hello 123 555 blue cat and dog
...
in a paragraph of text, I need to match to
hello big red cat
hello 123 555 blue cat
this is how I wrote these two sentences
hello[\s\S]*cat$
results match all, that is, the cat
matching results of the beginning hello and the end are as follows
hello big red cat
hello big red dog
hello yellow bird
hello 123 555 blue cat
how can I achieve my goal by writing?