Urban Giraffe Support | Search Regex
Does Search Regex support Named Capture Groups
I'm trying to do some advanced search/replace, sorting HTML tag attributes for images, links, etc. and I'd like to know if Search Regex support Named Capture Groups?
I think it should work something like this:
replace: /wp-images/(?P<image_name>.*?).png
with: /images/png/${image_name}.png
But I can't get it to work (This is just an example, but I'm trying to capture the image name into Named Capture Group called "image_name" and then using that on the replace)
p.s. Do you have list of supported regex features or more "advanced documentation" for this awesome plugin?

Responses
Posted 2 months ago by Administrator
It supports whatever features PHP's preg_replace supports!
Reply
You must log in to post.