Need to get and check for strings /get/ or /post/ only.
Following regex produce two results , but i actually need only the first one, how to correct this below regex query.
regex: \/(post|get)\/
eg: http://www.google.com/get/
result:
Array
(
[0] => /get/
[1] => get
)
how to check for string /abcdef=/
-> regex used \/*=\/
, but it is not giving any results..