Link to home
Start Free TrialLog in
Avatar of jsonburke
jsonburke

asked on

Modifying HTML files with Java

I need to modify some parts of an html file used as a template for generating various other html files. For example: changing the <title></title> of a file. What is the most effective way to do this in Java?
ASKER CERTIFIED SOLUTION
Avatar of mbodewes
mbodewes
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Ah, remove the "just reading the first 30 lines" from that solution. And I've even read back my answer, must get some sleep now.
Avatar of jsonburke
jsonburke

ASKER

This worked perfectly. it seemed there were many possible directions to take with this, I agree that using a buffered reader with regular expressions is the most efficient way for this context. Thank you!