Another RegEx question -


I absolutely hate Regx, I really need to know it - it's very powerful here's the problem: / P>

I am trying to write the URL again in the IIS, and I've got this default regx:

  ^ ([^ /] +) /? $  

However, it gives things like business / profile.html , but this is business-profile.html Gives through.

Thanks

If you want to understand and learn Reggae, If they are confused what they are doing, then learn to break their meaning. Here's the same regex in the extended format.

  ^ # Start of string (# group of one or more characters (+) ... [^ /] + # lo not / character) # end of the group? # An optional '/' $ # end of string  

then it regex matches:

  • All strings that have / <
  • To "rectify" regex all the string containing a single / at the end of that string, we should know that in fact What do you mean by "let's" means "match regex?"

    (Side note: There is a great resource - it provides a great cross-tool reference and tutorials for regex usage.)


Comments