Re: [j-nsp] Back-reference in JunOS regular expressions

2011-07-17 Thread Michael Hallgren
Le samedi 16 juillet 2011 à 15:17 -0700, Jonathan Lassoff a écrit : > Jeff, Michael -- these are both totally reasonable cases I didn't even > consider. The Juniper clue wiki article is a really good example as to > why. > > I wonder why it's not implemented. It does seem relatively easy > conside

Re: [j-nsp] Back-reference in JunOS regular expressions

2011-07-16 Thread Jonathan Lassoff
Jeff, Michael -- these are both totally reasonable cases I didn't even consider. The Juniper clue wiki article is a really good example as to why. I wonder why it's not implemented. It does seem relatively easy considering the fact that there is already some support for regular expressions anyway.

Re: [j-nsp] Back-reference in JunOS regular expressions

2011-07-15 Thread Jeff Wheeler
On Thu, Jul 14, 2011 at 3:00 AM, Jonathan Lassoff wrote: > Honestly, what's the use case of a backreference for an AS path? If you have that feature, you can detect as-path prepends and use that to influence your path selection. http://juniper.cluepon.net/ER_Detect_AS-PATH_prepends -- Jeff S W

Re: [j-nsp] Back-reference in JunOS regular expressions

2011-07-14 Thread Michael Hallgren
Le jeudi 14 juillet 2011 à 00:00 -0700, Jonathan Lassoff a écrit : > On Wed, Jul 13, 2011 at 11:02 PM, Michael Hallgren wrote: > > Le mercredi 13 juillet 2011 à 18:25 +0200, Daniel Verlouw a écrit : > >> see > >> > >> > >> Not s

Re: [j-nsp] Back-reference in JunOS regular expressions

2011-07-14 Thread Jonathan Lassoff
On Wed, Jul 13, 2011 at 11:02 PM, Michael Hallgren wrote: > Le mercredi 13 juillet 2011 à 18:25 +0200, Daniel Verlouw a écrit : >> see >> >> >> Not supported. I requested an ER back then, don't think it ever got >> implemented..

Re: [j-nsp] Back-reference in JunOS regular expressions

2011-07-13 Thread Michael Hallgren
Le mercredi 13 juillet 2011 à 18:25 +0200, Daniel Verlouw a écrit : > see > > > Not supported. I requested an ER back then, don't think it ever got > implemented... Thanks Daniel, I'll do the same then... Must be considered pr

Re: [j-nsp] Back-reference in JunOS regular expressions

2011-07-13 Thread Daniel Verlouw
Hi, On Wed, Jul 13, 2011 at 15:18, Michael Hallgren wrote: > I can't find a firm statement in the JunOS documentation, and some > tests makes me believe it's not implemented. Or am I mistaken with > the syntax? (I can use back-reference in 'replace', etc, etc...) see

Re: [j-nsp] Back-reference in JunOS regular expressions

2011-07-13 Thread Alexander Frolkin
Hi, > Is back-reference, like (.)( \1)*$, provided by the JunOS AS-path > matching engine? (This should match, for instance, ^6453$, ^6453_6453$, > ^6453_6453_6453$, and so on...) Never tried this, but do you mean something like ([0-9]*)( \1)* ? This works with egrep: $ echo 123 123 | egr

[j-nsp] Back-reference in JunOS regular expressions

2011-07-13 Thread Michael Hallgren
Hi, Is back-reference, like (.)( \1)*$, provided by the JunOS AS-path matching engine? (This should match, for instance, ^6453$, ^6453_6453$, ^6453_6453_6453$, and so on...) I can't find a firm statement in the JunOS documentation, and some tests makes me believe it's not implemented. Or am I mis