Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Notepad++ Regex for URL case to lower

Could someone tell me if it's possible to use a regex expression to convert a url to lowercase?

This is within a html img tag so we could find the urls by tag.

Here is an example of what i have

<img src="http://www.domain.com/dir/dir/ImageName.jpg" />

And i need to lowercase the image name at the end.

<img src="http://www.domain.com/dir/dir/imagename.jpg" />

The document contains furhter HTML so i cannot simply lowercase the entire document.

like image 533
bulldog5046 Avatar asked Jun 12 '13 19:06

bulldog5046


1 Answers

Use the following as a search term:

("http[^"]*")

and replace it with this:

\L\1
like image 170
ctn Avatar answered Nov 10 '22 18:11

ctn