.contains seems to return true for most things, even if one or two chars match. Is there a way to make it more restrictive?
asif49
9
Posting Whiz in Training
Recommended Answers
Jump to PostI assume you're talking about String.contains(), please be specific there are lots of contains methods :)
If you want to match a string more restrictively to patterns, i would suggest looking at regular expressions, which allow you to create a definition of a pattern, for example
"abc"
…
All 3 Replies
CSloan7597
0
Light Poster
Ezzaral
2,714
Posting Sage
Team Colleague
Featured Poster
asif49
9
Posting Whiz in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.