Hello !
I need some help because I’m working on a maxscript file with regular expressions.
I have a Max scene with a huge amount of objects. I have 2 layers. 1 with my objects and 1 with my proxys. I need to align each object with the right proxy.
Currently I have 2 variables : 2 arrays. The first list contains the name of each object and the second list contains the name of each proxy.
This is the format of each name :
PROXYS LAYER
proxy_001_1200x300
proxy_002_1200x300
proxy_001_1200x400
proxy_650x350
...
OBJECTS LAYER
object_1200x300
object_1300x300
object_300x1200
object_650x350
...
As you can see, I have similarities in names : 0000x0000. So I would like to use a regular expression to extract those similarities and use it to match each object with the right proxy.
I read the Maxscript documentation but I don’t understand how it’s work.
Could you help me please to create this expression ? Thanks a lot.

! I used the second code.
!