www.delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2015/08/28/09:20:25

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
Date: Fri, 28 Aug 2015 15:22:26 +0200 (CEST)
X-X-Sender: igor2 AT igor2priv
To: "Matt Rhys-Roberts (matt DOT rhys-roberts AT envinsci DOT co DOT uk) [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com>
X-Debug: to=geda-user AT delorie DOT com from="gedau AT igor2 DOT repo DOT hu"
From: gedau AT igor2 DOT repo DOT hu
Subject: Re: [geda-user] when pcb disperse command loses elements
In-Reply-To: <55E05A27.6090204@envinsci.co.uk>
Message-ID: <alpine.DEB.2.00.1508281520400.6924@igor2priv>
References: <55E02536 DOT 8020202 AT envinsci DOT co DOT uk> <alpine DOT DEB DOT 2 DOT 00 DOT 1508281126210 DOT 6924 AT igor2priv> <55E05A27 DOT 6090204 AT envinsci DOT co DOT uk>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
MIME-Version: 1.0
Reply-To: geda-user AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: geda-user AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com


On Fri, 28 Aug 2015, Matt Rhys-Roberts (matt DOT rhys-roberts AT envinsci DOT co DOT uk) [via geda-user AT delorie DOT com] wrote:

> On 28/08/15 10:29, gedau AT igor2 DOT repo DOT hu wrote:
>> 
>> A regex pattern for 100-199 is: 1[0-9][0-9]
>> For 200-299: 2[0-9][0-9]
>> In case you want to deal with resistors only: R1[0-9][0-9]
>> 
>> These are the generic regex patterns that; I am not sure how exactly the 
>> select dialog box works, tho. 
>
> Thanks! That really helps for selecting R100-199, C100-199, etc.
>
> Next, I'd really like to know if it's possible to select ALL components 
> numbered 100-199, 200-299, etc. I've tried lots of regex combinations but not 
> found the right magic yet...

Tested it now, it seems it's not pure regex but does some 
transformation/magic, probably assuming the format will be 
letter-number or forcing match from the beginning of the refdes, I'm not 
sure.

What worked for me, for 100-199 is this: .1[0-9][0-9]

So the trick is that it really wants to match the letter in your case, so 
we give it a . that matches anything.

Regards,

Igor2

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019