Re: [j-nsp] REGEX

2017-09-25 Thread Jason Iannone
Try [0-9]{12,}

On Mon, Sep 25, 2017 at 11:53 AM, craig washington
 wrote:
> Hello all, hope this is the right place for this.
>
> I am not the best with Regex and was looking for an expression in a Juniper 
> that will match on only so many numbers.
>
> Meaning, I am looking at the mpls lsp statistics "show mpls lsp transit 
> statistics" and I only want to see the LSP's that have larger Bytes, for 
> instance I only want to see stuff that has at least 12 digits or longer.
>
>
>
> Any help would be greatly appreciated, and if this is the wrong thing to ask 
> here, I have no qualms with that either 
>
>
> Thanks again.
>
> ___
> juniper-nsp mailing list juniper-nsp@puck.nether.net
> https://puck.nether.net/mailman/listinfo/juniper-nsp
___
juniper-nsp mailing list juniper-nsp@puck.nether.net
https://puck.nether.net/mailman/listinfo/juniper-nsp

[j-nsp] REGEX

2017-09-25 Thread craig washington
Hello all, hope this is the right place for this.

I am not the best with Regex and was looking for an expression in a Juniper 
that will match on only so many numbers.

Meaning, I am looking at the mpls lsp statistics "show mpls lsp transit 
statistics" and I only want to see the LSP's that have larger Bytes, for 
instance I only want to see stuff that has at least 12 digits or longer.



Any help would be greatly appreciated, and if this is the wrong thing to ask 
here, I have no qualms with that either 


Thanks again.

___
juniper-nsp mailing list juniper-nsp@puck.nether.net
https://puck.nether.net/mailman/listinfo/juniper-nsp

[j-nsp] Regex

2012-11-25 Thread Ali Sumsam
Hi All,
Can anyone confirm, are regular expressions of Cisco exactly same as those
in Juniper?

for example

^123$ or 456_678 will be same in Cisco and Juniper?

Regards,
*Ali Sumsam CCIE*
*Network Engineer - Level 3*
eintellego Pty Ltd
a...@eintellego.net ; www.eintellego.net

Phone: 1300 753 383 ; Fax: (+612) 8572 9954

Cell +61 (0)410 603 531

facebook.com/eintellego
PO Box 7726, Baulkham Hills, NSW 1755 Australia

The Experts Who The Experts Call
Juniper - Cisco – Brocade - IBM
___
juniper-nsp mailing list juniper-nsp@puck.nether.net
https://puck.nether.net/mailman/listinfo/juniper-nsp


Re: [j-nsp] Regex

2012-11-25 Thread Saku Ytti
On (2012-11-25 20:26 +1100), Ali Sumsam wrote:

 Can anyone confirm, are regular expressions of Cisco exactly same as those
 in Juniper?

No. There is major difference, regexp atom in JunOS is ASN not
byte/char/digit. It may sound like simple difference, but I've found lot of
people with previous regexp people struggling to grasp it.
JunOS design decision is superior to any other implementation I've seen,
having ASN as atom makes perfect sense.

Consider you want to define private ASNs, in JunOS simple as [65412-65534],
in IOS horrible.

Study these examples
http://www.juniper.net/techpubs/software/junos/junos94/swconfig-policy/defining-as-path-regular-expressions.html

-- 
  ++ytti
___
juniper-nsp mailing list juniper-nsp@puck.nether.net
https://puck.nether.net/mailman/listinfo/juniper-nsp


Re: [j-nsp] Regex

2012-11-25 Thread Mihai
The first one could be used with Juniper and could be written without 
^? and the second one could be written like this: 456 678


On 11/25/2012 11:26 AM, Ali Sumsam wrote:

Hi All,
Can anyone confirm, are regular expressions of Cisco exactly same as those
in Juniper?

for example

^123$ or 456_678 will be same in Cisco and Juniper?

Regards,
*Ali Sumsam CCIE*
*Network Engineer - Level 3*
eintellego Pty Ltd
a...@eintellego.net ; www.eintellego.net

Phone: 1300 753 383 ; Fax: (+612) 8572 9954

Cell +61 (0)410 603 531

facebook.com/eintellego
PO Box 7726, Baulkham Hills, NSW 1755 Australia

The Experts Who The Experts Call
Juniper - Cisco – Brocade - IBM
___
juniper-nsp mailing list juniper-nsp@puck.nether.net
https://puck.nether.net/mailman/listinfo/juniper-nsp




___
juniper-nsp mailing list juniper-nsp@puck.nether.net
https://puck.nether.net/mailman/listinfo/juniper-nsp


Re: [j-nsp] Regex

2012-11-25 Thread Ali Sumsam
Thanks Mihai.


*Ali Sumsam CCIE*
*Network Engineer - Level 3*
eintellego Pty Ltd
a...@eintellego.net ; www.eintellego.net

Phone: 1300 753 383 ; Fax: (+612) 8572 9954

Cell +61 (0)410 603 531

facebook.com/eintellego
PO Box 7726, Baulkham Hills, NSW 1755 Australia

The Experts Who The Experts Call
Juniper - Cisco – Brocade - IBM



On Sun, Nov 25, 2012 at 9:04 PM, Mihai mihaigabr...@gmail.com wrote:

 The first one could be used with Juniper and could be written without ^?
 and the second one could be written like this: 456 678

 On 11/25/2012 11:26 AM, Ali Sumsam wrote:

 Hi All,
 Can anyone confirm, are regular expressions of Cisco exactly same as those
 in Juniper?

 for example

 ^123$ or 456_678 will be same in Cisco and Juniper?

 Regards,
 *Ali Sumsam CCIE*
 *Network Engineer - Level 3*
 eintellego Pty Ltd
 a...@eintellego.net ; www.eintellego.net

 Phone: 1300 753 383 ; Fax: (+612) 8572 9954

 Cell +61 (0)410 603 531

 facebook.com/eintellego
 PO Box 7726, Baulkham Hills, NSW 1755 Australia

 The Experts Who The Experts Call
 Juniper - Cisco – Brocade - IBM
 __**_
 juniper-nsp mailing list juniper-nsp@puck.nether.net
 https://puck.nether.net/**mailman/listinfo/juniper-nsphttps://puck.nether.net/mailman/listinfo/juniper-nsp




___
juniper-nsp mailing list juniper-nsp@puck.nether.net
https://puck.nether.net/mailman/listinfo/juniper-nsp