• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Detecting the minus sign in a string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Detecting the minus sign in a string


  • Subject: Re: Detecting the minus sign in a string
  • From: Alex Zavatone <email@hidden>
  • Date: Wed, 23 Jun 2010 13:36:06 -0500

Well, specifically, I'm trying to see if the minus sign is the second word from the end of a string.

On Jun 23, 2010, at 12:35 PM, Michelle Steiner wrote:

> On Jun 23, 2010, at 10:15 AM, Alex Zavatone wrote:
>
>> I just found out that if you have a string with a minus sign in it, that the minus sign can not be a word.
>>
>> The string,
>> "This is my - string"
>>
>> simply ignores the minus sign as a word.
>>
>> Any ideas on how to detect the minus sign?  Offset maybe?
>
> What exactly are you trying to accomplish?  If all you want to know whether a minus sign is in the string, either of these will do it:
>
> "-" is in "This is my - string"
> "This is my - string" contains "-"
>
> If you're trying to do something else, please let us know exactly what you're trying to do.
>
> -- Michelle
>
> --
> Sex is a lot like bridge. If you don't have a good partner, then you'd better have a good hand.
>


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Detecting the minus sign in a string
      • From: KOENIG Yvan <email@hidden>
    • Re: Detecting the minus sign in a string
      • From: Michelle Steiner <email@hidden>
References: 
 >Detecting the minus sign in a string (From: Alex Zavatone <email@hidden>)
 >Re: Detecting the minus sign in a string (From: Michelle Steiner <email@hidden>)

  • Prev by Date: *** OUT ***AppleScript-Users Digest, Vol 7, Issue 331
  • Next by Date: Re: Detecting the minus sign in a string
  • Previous by thread: Re: Detecting the minus sign in a string
  • Next by thread: Re: Detecting the minus sign in a string
  • Index(es):
    • Date
    • Thread