Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Substring capture To Write A list Of instances in A New Document

 
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Hi Guys,

About my Program:
Im brand new to Java and this is further development for my first program. So far my program captures the data between two strings and stores the substring value within an array. Once all the documents have been read in from the folder and all instances are captured. They are then sorted within the array and printed in a new document.

What I need to do now:

Basically i need to know capture another value between two other strings and return it below the first set as the value is of a different type.

i need to return a value between a string beginning with the value "<$" and ending in "=", the problem is. I've tried testing the changes variable parameter in my Working existing document but it doesn't write anything once the change is made. Does this mean that i cannot use "$" symbol as a value?

below is my code, as mentioned this works fully for one set of values, Please can anyone help me im really struggling with this.

regards Nick

 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Locking; continue in the other thread.

(And you're not "literally" brand new, because you've been posting Java questions for a couple of months.)
 
roses are red, violets are blue. Some poems rhyme and some are a tiny ad:
New web page for Paul's Rocket Mass Heaters movies
https://coderanch.com/t/785239/web-page-Paul-Rocket-Mass
    Bookmark Topic Watch Topic
  • New Topic