Re: Question about using variable with RegEx counter

2006-05-12 Thread Benji Fisher
On Thu, May 11, 2006 at 10:40:20AM -0600, Shaun Cummins wrote: Thanks for the responses everyone! BTW, do you realize that in your end pattern, .\+ will match all of STA1 n and .* will then match nothing? The values within the quotes can be any text [\w\d-\.\+]. The 6

Re: Question about using variable with RegEx counter

2006-05-11 Thread Matthew Winn
On Thu, May 11, 2006 at 10:12:32AM -0400, Benji Fisher wrote: On Wed, May 10, 2006 at 02:53:20PM -0600, Shaun Cummins wrote: I would like to use a variable within a regular expression counter. I tried the following, but it gave me a syntax error: :syntax region Keyword

Re: Question about using variable with RegEx counter

2006-05-11 Thread Yakov Lerner
On Wed, May 10, 2006 at 02:53:20PM -0600, Shaun Cummins wrote: :syntax region Keyword start=^\w\+\s\+\z(\d\+\) end=#\(\s*\(.\+\|'.\+'\).*\n\)\{\z1\}# How about :syntax region Keyword start=^\w\+\s\+\z(\d\+\) \ end=#^\s*[A-Z]*\z1# ? Yakov