Paste_Image.png 貪婪(盡可能多) 例題 取出 aabab中從a開始到最后一個b之間的所有字符 Paste_Image.png 可見貪婪的格式為 a.*b 懶惰(盡可能少) Paste_Image.png