Replacing a string

wxdqz

New Member
I am trying to replace ' (1 apstrophie) with '' (2 apostrophies). This is how I am trying to accomplish this


str.replace(/\'/g,'\'\'')


I don't get any errors but it doesn't replace anything either. Any ideas why ?:confused:

Thanks :
 
Top