I am trying to extract specific information located between two tags, specifically <wsse:BinarySecurityToken>
Here is an example:
<wsse:BinarySecurityToken att1="abc" att2="cd3" att3="adfa">This is the text I am trying to extract!!!</wsse:BinarySecurityToken>
I have attempted the following regex:
match = text.match(/<wsse:BinarySecurityToken[.*]>([^<]*)<\/wsse:BinarySecurityToken>/g)
However, this method is not yielding the desired results.
Is there a more efficient approach than using regex for this task? I am using angularJs 1