每个字符解释一下

解决方案 »

  1.   

    ^ (anchor to start of string)
    Non-capturing Group
      /
      Capture
        Any word character 
            or
        Any whitespace character 
            or
        .
        zero-width negative lookahead
          aspx
        End Capture
      End Capture
      + (one or more times)
      Capture
        Capture
          /default.aspx
        End Capture
        ? (zero or one time)
            or
        Capture
          /
          ? (zero or one time)
        End Capture
      End Capture
      ? (zero or one time)
    End Capture
    $ (anchor to end of string)
      

  2.   

    搂主的表达式很容易解释,只不过很长。推荐搂主看一篇文档:(入门者尤其推荐)
    http://www.regexlab.com/zh/regref.htm