Questions tagged as 'preg-match'

1
answer

doubt when passing a preg_match parameter

I have a doubt I want to pass a parameter within the rule eg the value that is entered is 1500-2000 and I want it to only validate the numerical value with the hyphen in between. I still need something to detect the script. CODE: if(preg_ma...
asked by 06.10.2018 / 18:53
0
answers

Add more options in preg_match_all

I have this little code in preg_match_all , which follows a pattern that copies three urls that start with, /lima.php?s=img&v= ,/lima.php?s=ik&v= , /lima.php?s=zk&v= and copies the image paths of each one starts here a...
asked by 06.12.2018 / 18:23