Re: Tex-Edit string manipulation.
Re: Tex-Edit string manipulation.
- Subject: Re: Tex-Edit string manipulation.
- From: Emmanuel <email@hidden>
- Date: Thu, 23 Aug 2001 19:56:51 +0200
At 17:46 +0200 23/08/01, Rachel wrote:
>
>
Greetings scripters, this is my first post. I am new to Applescript and Mac.
>
>
I am using Tex-Edit Plus with text lines of this form:
>
>
12345678 TextTextTextText
>
The first character block will be any number of digits.
>
>
What I need to do is set the text to a column regardless of the number of
>
digits. This means I need to conditionally insert or delete spaces after the
>
first non-space characters and reassemble the string.
>
How do I use string manipulation functions in Tex-Edit?
In addition to being new to AppleScript and Mac, I suggest you become new
to Regular Expressions as well. Your job seems like a job for them.
Check for instance
<
http://www.scriptmeridian.org/projects/regex/docs/>
HTH
Emmanuel