Top "Preg-match" questions

Regular expression pattern matching function for the PHP programming language

PHP email validation

For PHP what is the best email validation using preg, NOT ereg because it's deprecated/removed. I don't need to …

php regex preg-match email-validation
Replacing Placeholder Variables in a String

Just finished making this function. Basically it is suppose to look through a string and try to find any placeholder …

php preg-match
Regular expression to detect Internet Explorer 11

I am using this preg_match string preg_match('/Trident/7.0; rv:11.0/',$_SERVER["HTTP_USER_AGENT"] to detect IE11 …

php preg-match internet-explorer-11
Regex that extracts text between tags, but not the tags

I want to write a regex which extract the content that is between two tags <title> in a …

php regex preg-match preg-match-all
php preg_match between bracket

i want to use preg_match to find text between bracket for example: $varx = "(xx)"; final output will be $match = …

php string preg-match
Extracting all values between curly braces regex php

I have content in this form $content ="<p>This is a sample text where {123456} and {7894560} ['These are samples']{145789}&…

php regex preg-match
PHP regex non-capture non-match group

I'm making a date matching regex, and it's all going pretty well, I've got this so far: "/(?:[0-3])?[0-9]-(?:[0…

php regex date preg-match match
Regex extract text between pattern

i need your help with a regex in javascript. I've got an a-tag with follow pattern <a href='#…

javascript regex preg-match
Regex for finding valid filename

I want to check whether a string is a file name (name DOT ext) or not. Name of file cannot …

php regex validation preg-match
Get numbers from string using preg_match

I have a string : <div id="post_message_957119941"> I want to fetch only the numbers (957119941) from this string …

php preg-match