The following script to change all links to lowercase is incorrect: Why??? The scripts selects the links correctly but then replace them with this: href="\L\E"
Change this:
href="All-Links-On-My-Site.html"
To this:
href="all-links-on-my-site.html"
Find:
[ \t\r\n]*href[ \t\r\n]*=[ \t\r\n]*"(.*)html"
Replace:
href="\L\1\E"
Convert links to lowercase
Moderator: General Moderators
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
There's no regular expression in PHP that alters case. Use preg_replace_callback().