Issue with RegEx contains pipe (|) |
I am using some regex in my validation. Others are working well but this:
regex_match[/((?:https?:\/\/)?(?:www\.)?(?:\w\w\.)?example\.com\/)((([\w]{2,3})?)|([^\/]+\/(([\w|\d-&#?=])+\/?){1,}))$/] Error is: preg_match(): No ending delimiter '/' found "/((?:https?:\\/\\/)?(?:www\\.)?(?:\\w\\w\\.)?linkedin\\.com\\/)((([\\w]{2,3})?)|([^\\/" After searching about this issue just found that, there was an issue about it (1122) though it was solved.
Try adding the the ending slash to it like so.
PHP Code: |/ See if that will work. What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
|
Welcome Guest, Not a member yet? Register Sign In |