locked
Enter URL as a regular expression? RRS feed

  • Question

  • Hi,

    Trying to play with some settings in the Portal tab of UAG trunk.

    At one point it asks me to: "Enter URL as a regular expression"

    What does it want? Will 'http://www.company.com" work?

    Thanks.

    Tuesday, May 4, 2010 10:43 AM

Answers

All replies

  • An URL can be a name as a string (like (www.company.com) or regular expression. For regular expressions see http://technet.microsoft.com/en-us/library/dd282903.aspx
    Tuesday, May 4, 2010 1:04 PM
  • That regex link is a bit too complicated to the support users here....so can they simply type in: http://www.company.com in the section where UAG asks for "Enter URL as a regular expression" ?
    Tuesday, May 4, 2010 1:08 PM
  •  

    Hi,

     

    I am not sure of the exact place in the management console that you are asking about, since you did not specify it (just a hunch, based on some of your other posts: “Skip Body Parsing” ?...). So I’ll try to reply with a generic answer: usually, when IAG or UAG asks for a regex, it means that it will treat the string you typed in that box as a regex.

     

    Now, in regex, a dot is a special character, a wildcard, which means “any character”.

     

    So, if you are going to type, for example, “www.company.com”, this string will be treated as a regex by IAG/UAG, and therefore it will match www.company.com, but it will also match “wwwBcompanyQcom”, or “wwwcompanyycom” or “www6company-com”, etc., etc. Whether this suits your needs, it’s really up to you.

     

    If you would want to ensure that your regex matches only www.company.com, you need to escape the dot, so that it will not be treated as a wildcard, but instead as a real dot. The syntax is: “www\.company\.com”

     

     

    HTH,

    -Ran

    Tuesday, May 4, 2010 2:02 PM
  • What settings are you playing with?
    Tuesday, May 4, 2010 2:04 PM
  • The setting is as follows in UAG:

    • Advanced Trunk Config
    • Portal
    • Do not parse the response bodies to these requests (click Edit, select Localhost, add the URL)

    Just trying to see if there was another way to 'per URL' request switch off the UAG HAT function :-)

    Thanks for the explanation Ran, would be nice if an example like this was included with the UAG help file.

    Tuesday, May 4, 2010 2:19 PM
  • Handy Links:

    If you are gonna get to really know UAG, you're gonna need to get cozy with Regex.  It's pretty easy to get the hang of though.

    • Marked as answer by Erez Benari Wednesday, May 12, 2010 6:53 PM
    Tuesday, May 4, 2010 2:41 PM
  • Thanks for the links!
    Tuesday, May 4, 2010 2:44 PM