NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

Active IQ Unified Manager Discussions

Regexp in UserInput field

vladimirzhigulin
4,668 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
4,668 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
4,669 Views

Hello Vladimir,

You can use the following regular expression :

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

Regards,

Oz

vladimirzhigulin
4,668 Views

Awesome Oz, thanks, it works!

Public