Problem using Regex to manipulate string

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • kieran

    #1

    Problem using Regex to manipulate string



    Hi,

    I need to change a bunch of links...i need to append a username on the
    end of each one. The link always starts the same i.e. - <a
    href=http://www.link.ie/kjlasdfl - but the rest of the link ends with
    different numbers each time.

    The text i want to append on is - &user=userto m.

    I know i use regex to do this. At the moment i have the text in a
    string but can not get this manipulation working for me.

    Any ideas and guidance much appreciated.

    ------------------------------

    This is a whole example (the values in 'id=r-0_0' change also) -
    <a
    href="http://www.link.ie/stories.php3?ca =38&si=1457798& issue_id=12923"
    id=r-0_0>

Working...