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.
中間のすべてを取得し、正規表現を使用し&v=たいのですが、">
&v=
">
NSString *YouTubeRegex = @"/amp;v=([^(\">)]+)/";
しかし、その正規表現は一致を返していませんか?私はコーディングが正しいことを知っていますが、正規表現ではありません。
ありがとう
正規表現エンジンがPerlに似ていると仮定します。
"/&v=(.*)>/"
トリックを行う必要があります。
これを試して :
/amp;v=(.+?)">/
http://www.rubular.com/r/Lqb63CsN2p