I have many lines, and I need to check if each of them contains color.
For instance:
- Bird in the sky
- 22nd street of France
- The dog is blue.
- Cat black and white
So, the last two lines should return true.
What is the best way to find it?
Regex or check with any substr ()?
source
share