Dear Ralph,

@7-Sep-2004, 12:39 +0200 (07-Sep 11:39 UK time) Ralph [R] in
mid:[EMAIL PROTECTED] said to Marck:

>> Yes. The RegEx macros are used for this sort of purpose on a regular
>> (expression) basis.

... <snip>

R> thank you very much, but how can i use it on a text passage like
R> this:

R> Transaktionsnummer: 1958975
R> Artikelnummer: 14101885
R> Artikelname: Warcraft 3
R> Auktionsende: 05.09.2004 20:00:30

R> i always want to get the info after ":_". if i use your method all
R> text from a certain point is used, but these lines end with a line
R> break...

You can use pattern regexps. I recommend that you read up on the
RegExp tutorials on the TBFaq site.

In particular:

%SETPATTREGEXP='%-
Transaktionsnummer: (.*?)\n%-
Artikelnummer:(.*?)\n%-
Artikelname: (.*?)\n%-
Auktionsende: (.*?)\n'%-
%REGEXPBLINDMATCH(%otext)%-
%_trans=%subpatt(1)%-
%_artnum=%subpatt(2)%-
%_artnam=%subpatt(3)%-
%_date=%subpatt(4)%-

Now you have 4 variables to place into your template at will...

-- 
Cheers --  //.arck  D Pearlstone --List moderator and fellow end user
TB! v3.0.0.7 on Windows XP 5.1.2600 Service Pack 2
'

Attachment: pgpuil6JOg1um.pgp
Description: PGP signature

________________________________________________
Current version is 3.00.00 | 'Using TBUDL' information:
http://www.silverstones.com/thebat/TBUDLInfo.html

Reply via email to