Top "Regex" questions

Regular expressions provide a declarative language to match patterns within strings.

How do I extract text that lies between parentheses (round brackets)?

I have a string User name (sales) and I want to extract the text between the brackets, how would I …

c# .net regex
Regular expressions in C: examples?

I'm after some simple examples and best practices of how to use regular expressions in ANSI C. man regex.h …

c regex
jQuery validate: How to add a rule for regular expression validation?

I am using the jQuery validation plugin. Great stuff! I want to migrate my existing ASP.NET solution to use …

jquery regex jquery-validate
List of all special characters that need to be escaped in a regex

I am trying to create an application that matches a message template with a message that a user is trying …

java regex
Regular expression for first and last name

For website validation purposes, I need first name and last name validation. For the first name, it should only contain …

regex validation
Regular expression for letters, numbers and - _

I'm having trouble checking in PHP if a value is is any of the following combinations letters (upper or lowercase) …

regex
Get Substring between two characters using javascript

I am trying to extract a string from within a larger string where it get everything inbetween a : and a ; …

javascript regex string substring
Regex select all text between tags

What is the best way to select all the text between 2 tags - ex: the text between all the 'pre' …

html regex html-parsing
Case insensitive regular expression without re.compile?

In Python, I can compile a regular expression to be case-insensitive using re.compile: >>> s = 'TeSt' >&…

python regex case-sensitive case-insensitive
How do I replace whitespaces with underscore?

I want to replace whitespace with underscore in a string to create nice URLs. So that for example: "This should …

python regex django