Quantcast
Channel: Regex for string contains? - Stack Overflow
Viewing all articles
Browse latest Browse all 6

Answer by Platinum Azure for Regex for string contains?

$
0
0

Just don't anchor your pattern:

/Test/

The above regex will check for the literal string "Test" being found somewhere within it.


Viewing all articles
Browse latest Browse all 6

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>