Mail Archives: geda-user/2015/08/28/09:20:25
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 -