In an earlier question I asked about sanitizing postal street addresses, one of the respondents recommended this solution:
addressString.replace(/^\s*[0-9]+\s*(?=.*$)/,'');
which is perhaps a valid regex call but is not valid in Java.
I unsuccessfully tried to make this valid Java code by changing it to the following:
addressString.replaceAll("/^\\s*[0-9]+\\s*(?=.*$)/","")
But this code had no effect on the address I tested it with:
310 W 50th Street
Did I not correctly translate this to Java?