嗨,我叫John(又名Johnator).
得到括号(包括括号)之间的最佳方法是什么?
a = "Hi my name is John (aka Johnator)" a[/\(.*?\)/] # => "(aka Johnator)"