Hi guys, i am trying to extract numeric value of a name. For example i have listed an edge and i got : // Result: pCube1.e[17] // How can i extract just the number, so i can get something like this: / Result: 17// I tried using match command, but i can't achieve result i want, string $node = "pCube1.e[17]";string $suffix =…
you could do this: string $suffix = match("[0-9]+", `match "[[0-9]+]" $node`); or could use tokenize instead if you dont want to mess around with regex. The top code basically matched the [###] and then matches again for just numbers.