Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 724529
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T06:13:59+00:00 2026-05-14T06:13:59+00:00

I need some web.config examples for each expression types below : $number The last

  • 0

I need some web.config examples for each expression types below :

$number

The last substring matched by group number number.

$<name>

The last substring matched by group named name matched by (?< name > ).

${property}

The value of the property when the expression is evaluated.

${transform(value)}

The result of calling the transform on the specified value.

${map:value}

The result of mapping the specified value using the map. Replaced with empty string if no mapping exists.

${map:value|default}

The result of mapping the specified value using the map. Replaced with the default if no mapping exists.

Sample:

<rewriter>
    <if url="/tags/(.+)" rewrite="/tagcloud.aspx?tag=$1" />
    <!-- same thing as <rewrite url="/tags/(.+)" to="/tagcloud.aspx?tag=$1" /> -->
</rewriter>

Thank you very much !

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T06:14:00+00:00Added an answer on May 14, 2026 at 6:14 am

    Here’s what I found/guessed. Not tested.

    $number : http://urlrewriter.net/index.php/support/using

    <rewrite url="^(.*)/(\?.+)?$" to="$1/default.aspx$2?" />
    
    $1 matches (.*)
    $2 matches (\?.+)
    

    $< name > : this one I’m not so sure on the regex, couldn’t find anything in documentation

    <rewrite url="^(?<group1>(.*))/(\?.+)?$" to="$<group1>/default.aspx$2?" />
    
    $<group1> matches 
    

    ${property} : http://urlrewriter.net/index.php/support/reference/actions/set-property

    <set property="branch" value="$3" />
    <rewrite to="/showbranch.aspx?branch=${branch}" />
    

    ${transform(value)} : http://urlrewriter.net/index.php/support/reference/transforms

    <set property="transform-name" value="lower" />
    <set property="value-to-transform" value="THIS WAS UPPER CASE" />
    
    <redirect to="/WebForm1.aspx?q=${encode(${${transform-name}(${value-to-transform})})}" />
    
    results in "/WebForm1.aspx?q=this+was+upper+case"
    

    ${map:value} : http://urlrewriter.net/index.php/support/reference/transforms/static

    <mapping name="areas">
        <map from="sydney" to="1" />
        <map from="melbourne" to="2" />
        <map from="brisbane" to="3" />
    </mapping>
    
    <rewrite to="/area.aspx?area=${areas:$3}" />
    
    results in "/area.aspx?area=brisbane"
    

    ${map:value|default}

    <mapping name="areas">
        <map from="sydney" to="1" />
        <map from="melbourne" to="2" />
        <map from="brisbane" to="3" />
    </mapping>
    
    <rewrite to="/area.aspx?area=${areas:$4|perth}" />
    
    results in "/area.aspx?area=perth"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need some sort of interactive chart control for my .NET-based web app. I
I'm writing a shell script to do some web server configuration. I need to
I need to make some code to talk to a SOAP web service. Unfortunately
need ask you about some help. I have web app running in Net 2.0.
I have several web services I need to create for them some testing mechanism
So our web server apps need to connect to the database, and some other
Problem: I have to support users who need to edit web pages. Some of
I've got some rather complex forms, that need to be configured by web designers.
I need some advice as to how I easily can separate test runs for
I need some info on how to use margins and how exactly padding works.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.