I have a data stream that I am feeding into a method as a string, connects to a DB2 database and inserts the values contained in the string. Here is what the string looks like:
I need to "trim" out the stamp (==SS39939294==), which represents the Unix time of the stream. I believe i will need to use the replaceAll method of the String class with a regular expression, but i'm not quite sure how to do that. Can anyone help?
Code:
==SS39939294==
03012|39|33|32|2|232|9995
0333|34|007|32|2|7|95345
0392|39|33|32|2|232|9995
04492|39|3|32|8|77|95175
0392|39|33|6|2|232|554
I need to "trim" out the stamp (==SS39939294==), which represents the Unix time of the stream. I believe i will need to use the replaceAll method of the String class with a regular expression, but i'm not quite sure how to do that. Can anyone help?