I am reading a file using BufferedReader and I am trying to parse out a string using regex. The string that I would like to parse looks like this,
<test>123</test>
And, there should be text before and end of this string. And, I just want to parse the value of this string (Ex. I want to grab "123" in this case from the read string).
Regex I have is very simple, looks like
<test>?
I guess this is wrong, since it doesn't work. :)
Can somebody show me how to parse a such value from the string using the regex?
Thanks.