[OT] how to use pcre library in custom module
Added by john almost 8 years ago
I'm writing custom module to match url /[a-z0-9]/phpmyadmin/
my question how to check, if url matches regex = /^\/([a-z0-9])+\/phpmyadmin/g
how to capture groups to char for further operation, actually i need to put token in environment variables
thanks
Replies (2)
RE: how to use pcre library in custom module - Added by gstrauss almost 8 years ago
You can use mod_magnet and write a small bit of custom lua code to do arbitrary URL manipulation.
RE: how to use pcre library in custom module - Added by gstrauss almost 8 years ago
This is the Support forum, not the Development forum.
Also, this is lighttpd. Please read the documentation on PCRE for how to use PCRE.
Lastly, Sujit (aka john), please take your contributions elsewhere. This is not your personal self-help forum.