What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Preg replace syntax

Preg replace syntax
Author: Message:
bramvandeperre
Junior Member
**

Avatar
Some random dude

Posts: 56
Reputation: 3
32 / Male / Flag
Joined: Oct 2007
Status: Away
O.P. RE: RE: Preg replace syntax
quote:
Originally posted by Ezra
Little regex without the alt thingy you wanted, i'm sure you or someone else can make that work for you

Regex:
code:
<img src=\"(.*)"\salt=\"(.*)" />(.*)
Replacement string:
code:
<a href=\"\1\">\2</a>\3


thanks alot, but what if there is no alt at all? then the filename should be there (like image001.jpg or so)
12-05-2008 11:40 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Preg replace syntax - by bramvandeperre on 12-05-2008 at 10:54 PM
RE: Preg replace syntax - by Ezra on 12-05-2008 at 11:31 PM
RE: RE: Preg replace syntax - by bramvandeperre on 12-05-2008 at 11:40 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On