Quantcast
Channel: LDraw.org Discussion Forums - LDraw Editors and Viewers
Viewing all articles
Browse latest Browse all 122

Part annotation in LPub3D (2 replies)

$
0
0
Hi all,

Through regular expressions the part annotation can be extracted from the part description.
I'd like the annotation for Technic Bricks to be only the length (like beams).
The regex now is ^Technic Brick\s+(\d+\s+(x|X)\s+\d+\s*(x*|X*)\s*\d*\.*\d*)\s*.*$
This extracts the full size of the brick, ie. Technice Brick 1 x 16 gives "1 x 16".
What I'd like is only the 16.
How do I do that?

Thanks.

Viewing all articles
Browse latest Browse all 122