|
|
Browse by Tags
All Tags » lookbehind
Showing page 1 of 2 (12 total posts)
-
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 ...
-
I have the following regex statement I'm trying to run in PHP.
(?<!(end\s?zone|lower|upper)\s?)(view)
Testing against the following string: (matches in bold)
"The endzone view goes hi upper view and he goes view and then goes view and view and view!!!"
Notice "upper view" and "endzone view" are ...
-
I'm using WOA pdf-Excel to extract values from a table. An example of a line in the table would be, say:
itemname 12,123 23,456 34,789
using lookbehind, I can easily extract the numbers using the regex (?<=itemname\s+(\d+,\d+\s+){n})\d+,\d+ where n=0,1,2 to extract the 3 numbers.
But, there's no ...
-
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 ...
-
This sadly is not so easy to do with regular expressions. I had a very similar problem in my first post to this board. To match only unquoted strings your pattern would have to keep count of quotes in front of potential matches, not counting the escaped quotes etc. If these lookbehind assertions were possible, they would be of variable length, as ...
-
This pattern might do what you need.
(?ms)(?<=^(TO|INFO)\s).*?(?=\s+^(?:INFO|GR)\s)
It will only work reliably if there are no two other lines starting with TO, INFO or GR in the message body, i.e. after the first GR.
It will return one or two matches, depending on the presence of the INFO part. You will have to split those ...
-
Hello,
I wonder if you can help me, this is driving me crazy!
I have a large text file and I want to find a term in it.
But... I only want the regex to be successful if this term is NOT encompassed by square brackets.
e.g. this is the search term: sp_W_rev_CreditClient_RMAItems
I do not want this to be ...
-
The problem is with the way you are looking. When you check the character before the , you are telling the regular expression to include it. Use this expression which has a lookbehind expression in it. It will check the character before the comma and not include it in the match.
(?<=[^\\]),
I hope that helps,
Brendan
1
|
|
|