I have the following html line
<b>String :</b></b></td><td class="title">14</td>
I'm trying to parse it on order to get number only. Looks simple but "s/^.*\(:digit:\).*$/\1/
" shows whole line.
I tried also "s/^.*\(\d+\).*$/\1/
" but it return the same result.
If try "s/^.*String.*>\(.*\)<.*$/\1/
" command then it returns what is needed but "s/^.*String.*>\(\d+\)<.*$/\1/
" returns again whole line.
Do you think is possible to get here number from the string specifying include only digit in group?
Edit: I need it for Java language. Example here is juts for getting working regular expression which I test using sed command.
Thank you.