cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
325
Views
3
Helpful
1
Replies

cisco ace module regexp

danilodicesare
Level 1
Level 1

Hi all,

may you have any idea about a complex regexp for summarize this?

http://foo1(any number beetween 1 and 999):(port between 80 and 65553)/bar/bard_(ai|bi)/something

thk a lot

Das

1 Reply 1

ciscocsoc
Level 4
Level 4

Das,

It may be possible, but it might not be the best approach. The 1-999 can be represented as ([1-9]|[1-9][0-9]{1,2}) and the range 80-65535 can be represented as ([89][0-9]|[1-9][0-9]{2,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])

You should be able to put these together to make a regex. Whether that is a good idea is another question though.

HTH

Cathy

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: