Subj : Re: Seaching Strings
To : Cyclops
From : Deuce
Date : Wed Apr 05 2006 08:55 pm
Re: Re: Seaching Strings
By: Cyclops to Deuce on Tue Apr 04 2006 08:48 pm
> Ok, so it is a literal, and if string2 is part of an object, the same
> applies right?
>
> I should be able to do...
>
> if(ojb.string2.search(/string1/)==-1
As long as it can be coerced into a string, yes.
> That would be if string1 is NOT found right?
>
> What are the //'s for? Are they saying that string1 is literal?
It's a shorthand method of expressing a regexp.
---
This sig is not directed at Jazzman.
---
� Synchronet � My Brand-New BBS (All the cool SysOps run STOCK!)