Tools: Registers - File, Line, Column

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

User avatar
s_reynisson
Posts: 939
Joined: Tue May 06, 2003 1:59 pm

Post by s_reynisson »

hah! Helios posted the Tidy HOW-TO on Nov 20, 2003, TP ver 4.7.2 is
from Nov 5, 2003. *insert twilight zone theme here* :roll:
Then I open up and see
the person fumbling here is me
a different way to be
User avatar
delley
Posts: 13
Joined: Mon Jan 12, 2004 10:26 am

Post by delley »

Thanks s_reynisson !

That did it for me :D

Maybe we should suggest to the guys at Helios to update the TP help file with this topic since it is not described...

One more question :wink:
What is the difference between using POSIX and normal regexp? To me it looks like its only syntax differences.

Regards,

delley

BTW: The reason for me asking this topic was more to learn what was actually going on instead of just do copy and paste and forget about it. (sometimes copy and waste can be a curse).

BTW2: This setup works for my ANT:

ANT as DOS command (POSIX disabled)
---------------------------
Parameter: ant compile (this requires that ant is added to your path. And that your build.xml file has a target named "compile")

Initial Folder: $FileDir

Capture output (x)

Regexp: ^.\{12\}\([A-Za-z]:[^:]+\):\([0-9]+\):

File: 1
Line: 2
Column: empty
User avatar
s_reynisson
Posts: 939
Joined: Tue May 06, 2003 1:59 pm

Post by s_reynisson »

A hack from Friedl's book, Mastering RE's:
Portable Operating System InterfaceX, from 1986, to ensure portability
across OS's. Several parts of this standard deal with RE's. In an effort to
reorganize the mess ... POSIX distills the various common flavors into just
two classes of RE's, Basic RE's and Extended RE's. POSIX got "locale", ie.
a collection of settings that descibe language and cultural conventions.

I just happen to like the look's of
1.) ^.{12}([A-Za-z]:[^:]+): ([0-9]+): better than
2.) ^.\{12\}\([A-Za-z]:[^:]+\):\([0-9]+\): - so I use TP's "POSIX" ;)
1.) falls under the Extended RE's, no need to escape metacharacters like
() and {}.

Btw, I think you should post you Ant notes in the HOW-TO's 8)
Then I open up and see
the person fumbling here is me
a different way to be
Post Reply