Advertisement
Index154

XML attribute values as list

May 14th, 2021
1,033
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.53 KB | None | 0 0
  1. package xmlAttributeExtractor;
  2.  
  3. public class AttributeExtractor {
  4.  
  5.     public static void main(String[] args) {
  6.        
  7.         // Go to https://regex101.com and put the following regex in the field:
  8.         //          name="(.*?)"
  9.         // Replace name with description if necessary
  10.         // Then paste the file contents in the test string box
  11.        
  12.         // Click on the little arrow pointing up from a square on the right under match information
  13.         // Pick export method plain text and untick the checkbox at the bottom
  14.         // Copy the result to clipboard
  15.  
  16.     }
  17.  
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement