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.
x = r"abc" y = r"def" z = join([x,y], "|") z # => r"r\"abc\"|r\"def\""
正規表現コンテンツのみを処理する(つまり、修飾子をコンテンツの一部であるかのように扱わない)方法はありますかjoin(そして一般的に操作します)。目的の出力は次のとおりです。Regexrz
join
Regex
r
z
z # => r"abc|def"