Create property extracting numbers from hostname

Hello Forum!

I need your help here :smile:

I need to create a property that returns as a result the 5-digit number that is followed by the letters “SS” of a computer name and before the text EPOS.

All computers have a hostname similar to the following: SS00857ESPOS03. The property should return as result: 00857.

I hope you can help me with this!

Thanks !
Joaquin

There may be a typo in you example, I’m not sure whether it should be “EPOS” or “ESPOS”, but the simplest form is probably

preceding texts of firsts "ESPOS" of following texts of firsts "SS" of (computer name as uppercase)

1 Like

THANKS!!! Works perfect

1 Like