充分表達我有一個正則表達式查找一個URL像一些文字: my_urlfinder = re.compile(r'\shttp:\/\/(\S+.|)blah.com/users/(\d+)(\/|)')
text = "blah blah http://blah.com/users/123 blah blah http://blah.com/users/353"
for match in my
ORF_sequences = re.findall(r'ATG(?:...){9,}?(?:TAA|TAG|TGA)',sequence) #thanks to @Martin Pieters and @nneonneo
我有一行代碼可以找到A | G後跟2個字符的任何實例,然後是ATG,然後是以3爲單位讀取的TAA | TAG | TGA。 G-XX-ATG-XXX-TAA | TAG |