How would I write this to store the text "allofthistextcaptured" with regex? i dont want "_poster" to be captured. The below javascript is exactly what I need, I just need some regex at the end to capture all the text in the src tag EXCEPT "_poster".
html
<div class="postImage"><img src="allofthistextcaptured_poster.jpg" title="" width="640" height="385" /></div>
js i have so far
var text = $(this).siblings('.postImage').find('img').attr('src');