Active IQ Unified Manager Discussions

Regexp in UserInput field

vladimirzhigulin
3,383 Views

Hi All,

I'm trying to implement a regexp for ports WWN user input field.

I know that '\w{16}' works for a single WWN, what would be a regexp for the following:

WWN or WWN,WWN or WWN,WWN,WWN or WWN,WWN,WWN,WWN

ie the user input field can be ether 1 or not more than 4 WWN's separated by comma.

Thanks,

Vladimir

1 ACCEPTED SOLUTION

oz
NetApp Alumni
3,383 Views

Hello Vladimir,

You can use the following regular expression :

\w{16}(,\w{16}){0,3}

Regards,

Oz

View solution in original post

2 REPLIES 2

oz
NetApp Alumni
3,384 Views

Hello Vladimir,

You can use the following regular expression :

\w{16}(,\w{16}){0,3}

Regards,

Oz

vladimirzhigulin
3,383 Views

Awesome Oz, thanks, it works!

Public