Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
New Member

cisco ace module regexp

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
Silver

Re: cisco ace module regexp

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

172
Views
3
Helpful
1
Replies
CreatePlease to create content