javascript - Regular expression for url matching -


i have text field have value http://localhost/send/test.php?s/?a=1&o=2 . 3 text boxes . if enter 3 values above url change http://localhost/send/test.php?s/?a=1&o=2&s1=a&s2=b&s3=c . value s1,s2 , s3 not save anywhere . question how check value s1 set ? , how can update value of s1 if change textbox value s1alt text

you can replace using regex

url.replace(/&s1=([^$]+|[^&]+)/i, "&s1=newvalue"); 

Comments

Popular posts from this blog

silverlight - Applying a style to ItemContainerStyle in C# -

php - Retrieving comment count from fb:comments widget (Facebook) -

c# - NullReferenceException in MySqlClient.NativeDriver -