Forum Discussion
Nicolas_MENOUX_
Nimbostratus
Nov 23, 2009regexp and # issue
Hi,
I'm trying to reload my bigip.conf file from my v9.3 appliance to the new v10 release but I'm stucked with a bracket issue with my conf file.
After analysing the file, I've discovered that this line is faulted :
} elseif {[regexp {^/foo-([^\.]*)-m([0-9]+)([0-9]+).html} $uri url param1 param2 param3]} {set uri_rewrite "/foo/Default.aspx?g=posts&m=$param2&boardid=5&$param3"
The issue is coming from the first between ([0-9]+)([0-9]+). I think it is treated as a comment and thus the bracket pb.
I've tried to put a \ before but nothing changes. Is there any way to replace this with an encoded sequence or use another special character to prevent this from being a comment.
Thanks for your help,
Regards
- The_Bhattman
Nimbostratus
Hi Nicolas, - hoolio
Cirrostratus
You could try replacing the curly braces with quotes and then escaping the square braces:if {0}{ do something } elseif {[regexp "^/foo-(\[^\.\]*)-m(\[0-9\]+)(\[0-9\]+).html" $uri url param1 param2 param3]} { do something }
- Nicolas_MENOUX_
Nimbostratus
Hi Aaron and Bhattman
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects