Top "Regex" questions

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

Regular expression to remove HTML tags from a string

Possible Duplicate: Regular expression to remove HTML tags Is there an expression which will get the value between two HTML …

html regex
What is the difference between re.search and re.match?

What is the difference between the search() and match() functions in the Python re module? I've read the documentation (current …

python regex search match
RegEx to exclude a specific string constant

Can regular expression be utilized to match any string except a specific string constant let us say "ABC" ? Is this …

regex regex-negation
Using Java to find substring of a bigger string using Regular Expression

If I have a string like this: FOO[BAR] I need a generic way to get the "BAR" string out …

java regex string
Regex: Remove lines containing "help", etc

I have a long document of commands. Using Notepad++ or regex, I want to delete all lines containing "help" including …

regex notepad++
Split string into array of character strings

I need to split a String into an array of single character Strings. Eg, splitting "cat" would give the array "…

java regex split
JavaScript replace/regex

Given this function: function Repeater(template) { var repeater = { markup: template, replace: function(pattern, value) { this.markup = this.markup.replace(pattern, …

javascript regex replace
Converting any string into camel case

How can I convert a string into camel case using javascript regex? EquipmentClass name or Equipment className or equipment class …

javascript regex camelcasing
Does "\d" in regex mean a digit?

I found that in 123, \d matches 1 and 3 but not 2. I was wondering if \d matches a digit satisfying what kind …

python regex encoding gedit
How to extract img src, title and alt from html using php?

I would like to create a page where all images which reside on my website are listed with title and …

php html regex html-parsing html-content-extraction