Hello,I would like to validate for MAC addresses in the field setup using the follwing format : AA:BB:CC:DD:EE:FFI was wondering if the following Rexec expression is correct (“Regular Expression” selected for Validate)Argument (client-side):
"{1,2}([:])(?:[0-9a-f]{1,2}\1){4}[0-9a-f]{1,2}$"Thanks!
Hi Michael,thanks for the reply.As it does not work (entering AA:BB:CC:DD:EE:FF produces an incorrect field error) - do I have to write a custom function in addition, or is it simply enough to enter the string “{1,2}([:])(?:[0-9a-f]{1,2}\1){4}[0-9a-f]{1,2}$” into the Argument (client-side) field?Thanks!
Sorry it should of cause be lower case: aa:bb:cc:dd:ee:ff, but this is still giving me the incorrect field error).
I can test the string {1,2}([:])(?:[0-9a-f]{1,2}\1){4}[0-9a-f]{1,2}$ successfully in
https://regex101.com/r/tJ2mW5/12
Note that client side regular expression should be enclosed by “/”, see Validation (for Add/Copy/Edit/Search) → Arguments (Client-side).