A problem of regular expressions

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?

Feb.26,2021

hello [sS] *? cat$


/ hello.*?cat/mg


hello.*?cat
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b2b6f3-2ba92.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b2b6f3-2ba92.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?