Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Regex find replace?

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #29864
    hypnagogue
    Member

    Hi

    Does someone know how I could make this

    <Foto>images/test.jpg</Foto>

    into this…

    <Foto href="images/test.jpg"/>

    what I had was .$1.[</Foto>] to .$1. but I’m way off

    #81480
    MrSoundless
    Member
    preg_replace('/(.*?)/i', '', $source);
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Back End’ is closed to new topics and replies.