From: matt@... (matt neuburg) Date: 2008-05-08T02:45:23+09:00 Subject: Re: Check if char in string? globalrev 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/ 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