|
|
Browse by Tags
All Tags » conditional subpattern
-
Hello, I am using C# in Visual Studio 2008. I have a text file of the entire Bible that I am wanting to either put into a database or write to an XML document. The format of the text is as follows with comments in C# single line comment style to the right of the actual text (example: Genesis //book ...
-
Hey all,
Before I start, I just want to say that below you will find a modifier of "U". I know a lot of people say this should not be used, so if there is a way that my issue can be resolved where the U modifier won't be needed, great!
Language: PHP (4)
Users submit content via a wysiwyg ...
-
In the context of the regex dialect of XSLT 2.0, I am looking for two
"meta-regexes" that analyse other regexes. Each is discussed in a part
of its own.
(Part 1 posted as: Meta-regex for variable-length matching regexes (XSLT))
Part 2
Aim: A regex that provides for pre-calculating the length of the match
that a fixed-length matching ...
-
In the context of the regex dialect of XSLT 2.0, I am looking for two
"meta-regexes" that analyse other regexes. Each is discussed in a part
of its own.
(Part 2 posted as: Meta-regex to find fixed length of regex match (XSLT))
Part 1
Aim: A regex that would identify all those regexes that might yield
matches of varying length, as ...
-
Hello there, I am using PHP, preg_match to pull out of various Auction titles for video games, the video game platform of those games. I have a list of valid ones and trying to match back to them. However as this is completely user entered data there is a enormous amount of variety in the titles, which leads to some interesting ...
-
Sorry for committing thread necromancy, but I had some time on my hands and this post had no answer .
My idea of a regex for this problem looks like this:
(?is)<meta\s[^>]*\bcontent\s*=\s*(['"])?((?(1)(?!\1).*?|[^\s>]*))(?(1)\1)
In PHP you would do something like:
$pattern = ...
|
|
|