It is not a good idea to use regex for HTML/XML parsing…
However, if you want to do it anyway, search for regex pattern
<primaryAddress>[\s\S]*?<\/primaryAddress>
and replace it with empty string…
More Related Contents:
- Regular expression to validate username
- Rename Duplicate file name to another name in multiple folders [closed]
- Regex for converting xml tags key to camel case
- Parsing XML with REGEX in Java
- Regex exactly n OR m times
- removing invalid XML characters from a string in java
- Java equivalent to PHP’s preg_replace_callback
- Advanced Wildcard Mappings Parameters not found in Prepare() method
- What are the differences between perl and java regex capabilities?
- Java Variable Substitution
- How to split a string, but also keep the delimiters?
- How to group a 3×3 grid of radio buttons?
- Spring schemaLocation fails when there is no internet connection
- cURL equivalent in JAVA
- A regex to match a substring that isn’t followed by a certain other substring
- Java regular expressions and dollar sign
- How can I get stock quotes using Google Finance API?
- Java doesn’t work with regex \s, says: invalid escape sequence
- Java Regex to Validate Full Name allow only Spaces and Letters
- How to escape comma and double quote at same time for CSV file?
- Is there a more elegant way to convert an XML Document to a String in Java than this code?
- @XmlPath has no impact during the JAXB Marshalling
- How to validate XML against XSD 1.1 in Java?
- Pattern to extract text between parenthesis
- Java : Convert formatted xml file to one line string
- Best method to parse various custom XML documents in Java
- Pretty print XML in java 8
- Replace a String between two Strings
- Does Pattern.compile cache?
- Parsing XML file containing HTML entities in Java without changing the XML