Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How to replace the value of Img src [modified]

How to replace the value of Img src [modified]

Scheduled Pinned Locked Moved C#
tutorialhtmltools
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    aldo hexosa
    wrote on last edited by
    #1

    I want to replace the value of src attribute of html source code. for example the html source code is and i want to replace the folder path ("script" or anything) to C:\myfolder\ How to replace this Thanks in advance modified on Monday, February 9, 2009 11:33 PM

    C 1 Reply Last reply
    0
    • A aldo hexosa

      I want to replace the value of src attribute of html source code. for example the html source code is and i want to replace the folder path ("script" or anything) to C:\myfolder\ How to replace this Thanks in advance modified on Monday, February 9, 2009 11:33 PM

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      the replace method of the string class will work fine for that, or you could use regex if need be.

      Christian Graus Driven to the arms of OSX by Vista.

      A 1 Reply Last reply
      0
      • C Christian Graus

        the replace method of the string class will work fine for that, or you could use regex if need be.

        Christian Graus Driven to the arms of OSX by Vista.

        A Offline
        A Offline
        aldo hexosa
        wrote on last edited by
        #3

        Could you give me some example to do this using regular expression? thanks

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups