So I got the following input inside my textarea element:
<quote>hey</quote>
what's up?
I want to separate the text between the <quote> and </quote> ( so the result would be 'hey' and nothing else in this case.
I tried with .replace and the following regular expression, but it did not achieve the right result and I can't see why:
quoteContent = value.replace(/<quote>|<\/quote>.*/gi, ''); (the result is 'hey what's up'it doesn't remove the last part, in this case 'what's up', it only removes the quote marks)
Does someone know how to solve this?
 
     
     
     
    