Most voted "preg-match" questions
PHP function for string matches using Regular Expressions (Regex). Use this tag when the doubt is related to the use of the function and its parameters.
Learn more…53 questions
Sort by count of
-
-2
votes1
answer470
viewsTransforming elements from a string into a PHP array
mysql returns the following string: ["Element1", "Element2", "Element3", "Element4", "Element5", "Element6"] I need to transform each of the words between "" into an element of an array. I tried…
-
-2
votes3
answers53
viewscleaning variables with preg_match()
How to use the function preg_match() to remove special characters and allow ., @ and accents? If it is not possible to do with this function, what other can I use to have the same result? Example:…
-
-3
votes1
answer71
viewsReturn "block" text with a keyword from a txt file
I have a text file inside it contains coupons follows example of a coupon: COTIA CENTRO ATACADAO S.A. PROF JOSE BARRETO ----------------------------------------------- CNPJ 00.000.000/0000-00 IE…