• 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: digit not followed by a period
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: digit not followed by a period


  • Subject: Re: digit not followed by a period
  • From: Emmanuel <email@hidden>
  • Date: Mon, 12 Jan 2004 17:13:37 +0100

At 3:13 PM +0000 12/01/04, Rhostik wrote:
>On 11 Jan 2004, at 20:17, Emmanuel wrote:
>Sorry, I gave too simple an example. As the sequence to exclude gets longer, the ^ method gets much more complicated. How about a line that doesn't begin with 65.225.78:
>
>Grep uses the ^ method but I was hoping for a simpler solution. Will I need perl?

grep would be fine as far as I can tell because it can suppress lines. Suppose x stores your lines return-separated, I would try:

---------------------------- untested
do shell script "echo " & quoted form of x & " | tr '\\r' '\\n' | grep -e '^65\\.225\\.78' -v"
----------------------------

(quote x, then change returns into LF's then suppress (-v) lines that fit the pattern)

Emmanuel
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: How can I display the number of records processed using a thermometer (From: Martin Orpen <email@hidden>)
 >Re: How can I display the number of records processed using a thermometer (From: Rhostik <email@hidden>)
 >Re: How can I display the number of records processed using a thermometer (From: Emmanuel <email@hidden>)
 >Re: How can I display the number of records processed using a thermometer (From: Rhostik <email@hidden>)
 >Re: digit not followed by a period (From: Emmanuel <email@hidden>)
 >Re: digit not followed by a period (From: Rhostik <email@hidden>)

  • Prev by Date: Re: Halt script in progress...
  • Next by Date: Mac Newbie - Enable Scripts in Safari
  • Previous by thread: Re: digit not followed by a period
  • Next by thread: Need help with an Apple Script Error Code
  • Index(es):
    • Date
    • Thread