|
|
Browse by Tags
All Tags » matching specific instances of a string
Showing page 1 of 2 (12 total posts)
-
My script basically parses a game website for information about players in clans. Although not pretty, my pattern generally works, but sometimes there is an inconsistency in the code I am matching against.
$pattern = ...
-
Hello all,
Im using XSLT to grab data from an XHTML page, part of the data I wish to grab is a Postcode, this is the XSLT statement I have to grab the postcode:
<xsl:for-each select=".//h:a[starts-with(@href, ...
-
Hi, I'm having some trouble with my code. I'm using python to take in information from a form/website in order to link the user to another website. My problem is thus:
------------------------------------------------
ae = re.compile('[A-E]')
fl = re.compile('[F-L]')
mw = re.compile('[M-W]')
if ...
-
Hello!
I have a problem writing an expression where I want to match all characters with an accent. I will have a text where the character é (or á) will appear and I just want to find this character or any character with an accent. I have tried all sorts of combinations with \P{Mn} but I don't get it to work.
If I write an ...
-
Okay, say I have this text file: bash-2.03$ cat test.txt
The quick brown fox
The silly black fox
The code sequence is alpha foxtrot hotel tango.
The elephant smokes pot.
I want to be able to extract lines containing the words "The" and "foxtrot". I can achieve this easily by piping the file into grep, searching for one pattern, ...
-
Hi
I have a formulam represented like a string: @X1 + @Y2/ @X + @Y, where @xxx are variables which are replaced with a numeric value.
Question 1:
Instead of myFormular.Replace("@X", "1234") I want to use a RegEx pattern to make sure that @X1 is not replaced when searching for @X. How do I ...
-
I've looked all over this site, and while I can find bits and pieces that may be helpful for what I'm needing, I can't find anything that covers my exact needs. I'm hoping someone can help me with filling in the gaps.
I get a ton of email on some of my accounts, sometimes it's a majority of spam. I've been using ...
-
Hello,
I need to parse a line into fields. This should be relatively easy, but the line will also contain free text, unlabeled, which is also a field. I am working in .Net (C# or VB works). This is a new project so I don't have "real" data, but here are some examples:(Z) p:PField c:CField Here is some associated ...
-
Hi, all, I am trying to write an .xml file that determines keywords in a query that should trigger a specific event. For example, if my keywords are "electric generator", the expression to trigger my event on any query that BEGINS with these keywords even if they are possibly followed by other words is ...
-
Here is what I came up with, either one has to run RegEx over the data in a multi-pass scenario or have the match groups have a boolean indicator that the proceeding match group is actually a sub group. Here is the regex: (?<=X)(?<Data>\d{1,3})(?<SubMatch>\[ )?(Note there is a space after the \[ in the submatch for easier ...
1
|
|
|