Re: digit not followed by a period
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.