Remove space , "-" and "_" from the serial number

(imported topic written by Darknight)

Hi All,

I am extarcting the serial number using teh belwo relevance:

q:
if

(name

of

operating system

as

lowercase

contains

“sun”
)
then

(parenthesized parts

1

of

(matches (regex

“SerialNumber:(.+)”
)

of

it
)

of

lines

whose

(
it

contains

“SerialNumber:”
)

of

file

“inventory.txt”

of

folder

“__HardwareInfo”

of

client folder

of

site

whose

(name

of

it

starts with

“actionsite”
))

else

if

(name

of

operating system

as

lowercase

contains

“linux”
)

then

(serial_number

of

system_information

of

dmi)

else

if

(windows

of

operating system)

then

((
if

(
exists

wmi)

then

(string values

of

selects

“SerialNumber from Win32_BIOS”

of

wmi)

else

if

(
exists

dmi

AND

exists

serial_number

of

system_information

of

dmi)

then

(serial_number

of

system_information

of

dmi)

else

(
""
)))

else

(
""
)

A:
VMware-42 2b b0 e5 dc 56 bd 89-f2 87 de 0b 17 11 43 6e

T:
230.102 ms

I want to remove spaces , “-” and “_” from this output and represent the below output in the below fashion :

desired output :

A:VMware422bb0e5dc56bd89f287de0b1711436e

can this be done using relevance,please advise.

(imported comment written by Darknight)

can someone please reply …

(imported comment written by baonhan)

q: (concatenation of substrings separated by " " of it) of (concatenation of substrings separated by “-” of it) of “VMware-42 2b b0 e5 dc 56 bd 89-f2 87 de 0b 17 11 43 6e”

A: VMware422bb0e5dc56bd89f287de0b1711436e

(imported comment written by Darknight)

thanks a lot baonhan…this was of really helpfull :slight_smile: