I\'m porting YUI\'s CssCompressor, which has several Matcher uses, to PHP. For the sake of long-term maintenance I\'d like to keep the PHP port as similar to the Java original as possible (preg_replac
I have some text content (read in from the HTML using jQuery) that looks like either of these examples:
I\'m scrubbing through a large number of XML based files in a JSF project, and would like to find certain components that are missing an ID attribute.For example, let\'s say I want to find all of the
I want to compare two regex in perl but it fails: Use of uninitialized value in numeric eq <==> at [... datafile & row]. Argument [different regex!] isn\'t numeric in numeric eq <==> [...]
I\'m trying to get some regex to parse some values stored in a set of lua files, each line looks something like one of these two lines
I have string that contains html . The html has several img tags in it . I want to find all the img tags and have some kind of collection so that i can replace them with my code.
I need a regular expression to match any number from 0 to 99. Leading zeros may not be included, this means that f.ex. 05 is not allowed.
I want to check if the value is \'H\' or \'T\' or else it can be \'H\' orelse it can be \'T\' or both \'H\' and \'T\'
I am trying to extract all occurrences of tagged words from a string using regex in Python 2.7.2. Or simply, I want to extract every piece of text inside the [p][/p] tags.
BBEdit has an excellent \"multi-file search\" feature that can search with Grep. I have some 开发者_如何学JAVAPHP code in need of cleaning up. For example, I\'d like to find all instances of ...