現在我有相匹配的圖像src
屬性來獲得圖像的URL正則表達式,但我想正則表達式來獲得url只能做到第一白空間:比賽圖片src用正則表達式,直到空白 - 的Javascript
當前正則表達式: blog_details.match(/src=(.+)/)[1]: ""
利用當前的正則表達式,我得到:
"https://res.cloudinary.com/cot/image/upload/v1xxxx878705/cz3dbifffcb6ysto7cbp.jpg layout="responsive" width="600" height="auto"/>"
如果不需要此部分:
layout="responsive" width="600" height="auto"/>"
沒有雙引號(「) –