Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は QString (Qt 4.8) をsrc="http://media.cineblog.it/9/91f/Big-Bad-Wolves-primo-trailer-per-il-crime-thriller-israeliano.jpg" 使用しており、QRegExp を使用して QString からこの種の文字列を抽出したいと考えています。しかし、それを行うための適切な正規表現が見つかりません。文字列が img タグにありません。
src="http://media.cineblog.it/9/91f/Big-Bad-Wolves-primo-trailer-per-il-crime-thriller-israeliano.jpg"
パターンを使ってみる
(src="[^"]+")
さらに簡単な答え:
src=".*"
.* は、「(この行の) 可能な限り一致する」ことを意味します。