string.replace not working

2008-02-17 Thread Patrick Wiseman
Hello: A new repository of US caselaw[1] has recently been released, and I'm trying to make it a little more useful. At this URL (which happens to be Brown v. Bd. of Ed.), http://bulk.resource.org/courts.gov/c/US/347/347.US.483.html, I'm trying to convert data which looks so, 123 U.S. 456, into

Re: string.replace not working - D'OH!

2008-02-17 Thread Patrick Wiseman
On Feb 17, 2008 11:38 AM, I wrote: At this URL (which happens to be Brown v. Bd. of Ed.), http://bulk.resource.org/courts.gov/c/US/347/347.US.483.html, I'm trying to convert data which looks so, 123 U.S. 456, into a link, so, lt;a href=\../123/123.US.456.html\gt; 123 U.S. 456lt;/agt. This

Re: string.replace not working - D'OH!

2008-02-17 Thread Patrick Wiseman
On Feb 17, 2008 3:48 PM, I wrote: [earlier missive deleted] I realized that the string.replace function doesn't actually do anything to the string, so I have to assign b.replace to a variable and write that back, something like 'var c = b.replace...', then document.body.innerHTML = c. That,