• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Issue with RegEx contains pipe (|)

#1
Question 
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.
"Who thinks in code"
Perfectly describes who I am
mbparvez.me
Reply


Messages In This Thread
Issue with RegEx contains pipe (|) - by webdevron - 01-21-2020, 07:40 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.