Is there a way of adding comments or include file directives to entry in URL groups

The subject says it all. I would like to document my regex codes and also maybe include the codes from an external file - there may be some commonalities in some instances.

Thank you


  • Andrew

    Hello and thanks for the super-fast response. In the URL Groups dashboard we are asked to list URLs either as normal strings or as regular expressions. As some of the regular expressions could become complicated and hard to read I would like to leave some kind of documentation in the box where URLs are listed just as you might do that in a php or C program. It would be helpful to keep all of the information in one place.

    Also, I thought that there may be instances where the same URLs are included or excluded in a particular level. Rather than copying many instances of the same URL into the URL group space it may be easier to include a single "include" file again in the same way that a file can be included in php or C. That would also reduce the maintenance load.

    I hope that this makes sense and helps to clarify things a little.

    Cheers and thanks again

  • Jack Kitterhing

    Hi there @Andrew

    I hope you are well today and thanks for the additional information, out of the box this would require modifying core code, though I can see how helpful it would be too users, there is a good regex source here

    If you wanted to display this to your users, you could use something like our admin message plugin here :slight_smile:

    I'll also mention this to the lead developer for consideration into a future release.

    Thank you for being a WPMU DEV member and have a great weekend!

    Kind Regards

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.