I am working on a Java project and I am trying to get useDelimiter to remove everything except the text in between "=" and ",". For example, on the first line of the file I would like to keep "ThermostatNight".
This is what the text file looks like:
Event=ThermostatNight,time=0
Event=LightOn,time=2000
I've been able to do the exact opposite using this code:
s.useDelimiter("=(.*?),");
Is there any way I can tweak this to do the opposite?