Suppose I wanted to know if the string "43fdsfhipposa97sad" contained the smaller string "hippo". How would I go about determining that?
Thanks!
Suppose I wanted to know if the string "43fdsfhipposa97sad" contained the smaller string "hippo". How would I go about determining that?
Thanks!
Or, more useful in a way:Code:if (/hippo/.test("43fdsfhipposa97sad")) alert("It's in there!");
Code:var teststring = "43fdsfhipposa97sad"; if (/hippo/.test(teststring)) alert("It's in there!");
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
jlizarraga (08-01-2008)
Learn how to code at 02geek
The more you learn, the more you'll realize there's much more to learn
Ray.ph!
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
Thanks guys!
Bookmarks