Precedence Rules for '$' and '^'



Hi there,

I am author of lexertl (http://www.benhanson.net/lexertl.html), a
lexer generator library, and I have recently added support for '^' and
'$'. As position matching in regex is not described in any books I
have looked at, does anyone know what the precedence rules should be?
If an earlier rule starts with '$', does that mean that a subsequent
rule starting with '^' has the '^' ignored?

Thanks,

Ben Hanson
.



Relevant Pages

  • Re: Precedence Rules for $ and ^
    ... I am author of lexertl, ... As position matching in regex is not described in any books I ... does anyone know what the precedence rules should be? ...
    (comp.compilers)
  • Re: OT: Regexp buddy
    ... it's a very powerful and comes with many useful features that appear to be robust. ... Their library of regex is quite excellent that you can get a lot of help very quickly. ... It can generate Ruby/Perl/Python/Java code to support regular expressions. ... it has problems dealing with language specific regular expressions and breaks down when an expression gets a bit complicated. ...
    (comp.lang.ruby)
  • Re: Google and RegEx
    ... support Regular Expressions?" ... Are there any *huge* databases that support speedy RegEx searches? ... programmer customers. ...
    (comp.databases)
  • Re: php and regex (why no =~ like perl)?
    ... > Is there a good article that explains why php does not support =~ like ... > perl for regex? ...
    (comp.lang.php)
  • Re: Great SWT Program
    ... Except you previously posed a text replacement problem that was solved ... So what you're saying is that Eclipse has weak regex support? ...
    (comp.lang.java.programmer)