I have simple simple regular expressions that I use.
It is as simple as:
"user/" "user/[A-z0-9_-]"
They all work fine with ereg, but not preg.
How to convert it?
thanks
This is most likely because you do not have delimiters . Try the following:
"~user/~" "~user/[A-z0-9_-]~"
ereg('jpg$', $query)
Included in:
preg_match('@ jpg$@ ', $query)
Source: https://habr.com/ru/post/1343211/More articles:Sincere Digest Authentication in RestEasy - unit-testingClient disconnect check on Java TCP server - output only - java2-color smoothing - cembed advertising on HTML5 video - html5In Django, how can I link an unrelated form? - dynamicThe specified method is not supported, iis 7.5 win 2008 r2 - windows-server-2008-r2How do you know which project in Visual Studio takes a very long time? - c #Resharper Test Runner does not run unit tests in VMWare Fusion public folder - visual-studioautomatic application testing in xcode - iphoneAutoResetEvent Reset Method - c #All Articles