way to extract variable from text

hello~~
sorry sorry , i need some help again .

i have

Layer:0J6A4584_JPG_274__22_mm
Layer:0J6A4582_JPG_22__153_mm

name object

a = 274
b = 22

a= 22
b= 153

etc...

i need to extract some text from object name

pls how can do that ?~~

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
jahman's picture

.

for i in filterstring "Layer:0J6A4584_JPG_274__22_mm" "_" where (num = i as number; isKindOf num number) collect num


#(274, 22)

dussla's picture

Wow wow thanj you

Very simple and perpect~~
Really thank you~~~

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.