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.
以下の例では、{0} と {1} を format に渡された引数に置き換え、{2}\w{2}に「2 文字の検索」という正規表現機能を持たせる必要があります。どうすればいいですか?
\w{2}
q = re.search("{0}\w{2}b{1}\w{2}quarter".format('b', 'a'), search_me).group()