XF 2.1 Invalid Regex

Hello,

I am trying to use the following regex to validate LinkedIn profile url as a custom field. However, XF is responding with "please enter a valid regular expression"

/^(https:\/\/)?((www|\w\w)\.)?linkedin.com\/((in\/[^/]+\/?)|(pub\/[^\/]+\/((\w|\d)+\/?){3}))$/
 
Your regex is invalid - you have an unescaped delimiter.

This saves: ^(https:\/\/)?((www|\w\w)\.)?linkedin.com\/((in\/[^\/]+\/?)|(pub\/[^\/]+\/((\w|\d)+\/?){3}))$
 
Back
Top Bottom