If a have a string as OU=test,ou=test1,ou=test3,ou=dept,o=corpidvI need to read the ou just before OU=dept, sometime I will have more or les ou before the OU=dept

Can anyone help with this in ecma script on a provisioning form

Regards

Niels