J
jack.smith.sam
Hi All,
I have a string which can be in these two formats : "<b>word" or "word"
(<b> may or may not be present)
I used the following regular expression to extract word (word is
similar to email ID and may containt letter,-,_):
[<b>]*([\\w-_]+)
but for some words like "best' it outputs "est" and removes the "b". I
think [<b>] means < or b or >.
Can you help me solving this issue(preferably without using additional
parentheses)?
Thanks a lot.
I have a string which can be in these two formats : "<b>word" or "word"
(<b> may or may not be present)
I used the following regular expression to extract word (word is
similar to email ID and may containt letter,-,_):
[<b>]*([\\w-_]+)
but for some words like "best' it outputs "est" and removes the "b". I
think [<b>] means < or b or >.
Can you help me solving this issue(preferably without using additional
parentheses)?
Thanks a lot.