globalrev <skanemupp / yahoo.se> wrote:

> On 7 Maj, 19:39, m... / tidbits.com (matt neuburg) wrote:
> > globalrev <skanem... / yahoo.se> wrote:
> > > how do i do this:
> >
> > > str = "you muppet"
> >
> > > if "y" in str:
> > >         print "its in there"
> >
> > I always use regex in this situation:
> >
> > if str =~ /y/
> >
> 
> 
> but none of that is what i want to do.
> 
> i want to chekc if a char is in a string.
> not check if a char equals another char.

Try it!

m.

-- 
matt neuburg, phd = matt / tidbits.com, http://www.tidbits.com/matt/
Leopard - http://www.takecontrolbooks.com/leopard-customizing.html
AppleScript - http://www.amazon.com/gp/product/0596102119
Read TidBITS! It's free and smart. http://www.tidbits.com