Subscribe
Accepted Solution

Regexp in UserInput field

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

oz Former NetApp Employee

Re: Regexp in UserInput field

Hello Vladimir,

You can use the following regular expression :

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

Regards,

Oz

Re: Regexp in UserInput field

Awesome Oz, thanks, it works!