B
bryanmig
Ok I am new to RegEx and what I am trying to do is find a substring.
I have a string that constantly changes. This string is pulled from an
Atom feed from a blog. I need to strip the HTML formatting from this
string and just grab the inner text.
If this is my string: "<div>Hello my name is bryan and I am learning
regex!</div>"
I need to be able to just grab what is in between <div> and </div>
I thought this would work but it still grabs the div's code...
Regex: <div>.*?</div>
How can i modify this expression to eliminate the div's ?
Thanks
Bryan
I have a string that constantly changes. This string is pulled from an
Atom feed from a blog. I need to strip the HTML formatting from this
string and just grab the inner text.
If this is my string: "<div>Hello my name is bryan and I am learning
regex!</div>"
I need to be able to just grab what is in between <div> and </div>
I thought this would work but it still grabs the div's code...
Regex: <div>.*?</div>
How can i modify this expression to eliminate the div's ?
Thanks
Bryan