🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #10044

Help needed with regular expression.

#10044
From: Jerker_Dahlblom
Date: Tue, 11 Jul 2006 12:33
16 lines
1147 bytes
I am fiddling around with regular expressions and I just can't get anywhere. I've done some before in Linux/Unix and TextPad but not in InDesign (CS2 4.03).

A catalog has price info I want to remove.
A price paragraph has the following format,

<article number><tabs, one or more><price>\n

Price format is always two decimals and has the "." decimal character.

I've tried this but it's no good. \t[0-9]+.[0-9]{2,}$

Should I iterate trough all paragraphs or use the story.contents.replace method? I've seen a few alternatives.

Thanks!

(:
Technical Details
Message-ID: <3bc0dfb6.-1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.germany.com!news.musoftware.de!news.albasani.net!news.ecp.fr!news.stben.net!webcrossing

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,8bed2397d36f00d4,start
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Jerker_Dahlblom@adobeforums.com
Newsgroups: adobe.scripting.indesign
Subject: Help needed with regular expression.
Message-ID: <3bc0dfb6.-1@webcrossing.la2eafNXanI>
Date: Tue, 11 Jul 2006 05:33:01 -0700
Lines: 19
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.germany.com!news.musoftware.de!news.albasani.net!news.ecp.fr!news.stben.net!webcrossing