|
|
Browse by Tags
All Tags » assertion
-
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 ...
-
Just use something like:
^From:[^<]+<(?!user1@example\.com)(?!user2@example\.org)(?!user3@example\.net).*?^X-Spam-Level:\s*(\S*)
with singleline (s) and multiline (m) modifiers (so the dot matches newlines and ^ matches the beginning of each line).
-
Hi Mark,
try this pattern:
\d+(?=\syears?)
It works also for "The dog is 1 year old" (the 's' of years is optional).
-
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 = ...
-
I sadly do not know Python, but if it's regular expressions are anywhere near those of my knowledge, just try adding a $-sign in the pattern after .autodbbackup. $ asserts the end of a string.
|
|
|