我目前是这样写的,但是有错,还请指点:
[/Page]?/(.+).htm

解决方案 »

  1.   

    试下这个吧:
    (?is)/(?:page/)?index.htm
      

  2.   

    哦,忘记转义了。
    (?is)/(?:page/)?index\.htm
      

  3.   

    如果文件主名不确定:(?is)/(?:page/)?.+?\.htm
      

  4.   

    不行啊,大哥。连这种都返回true了
    /age/Index.htm
      

  5.   

    (?is)^(/page)?/[^/]+\.htm$样例
    /Index.htm
    /Page/Index.htm
    /age/Index.htm
    /Page/abc/index.htm
    可以完全匹配
    /Index.htm
    /Page/Index.htm不知道你要的是不是这种。