JRS: In article <. com>,
dated Thu, 13 Apr 2006 23:14:08 remote, seen in
news:comp.lang.javascript,
posted :
>
>foo = foo.replace(/thumbnailUrl=.*?&/,"replacement text")
>
foo = foo.replace(/thumbnailUrl=[^?]*&/, "replacement text")
may be safer.
--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://www.jibbering.com/faq/> JL/RC: FAQ of news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.