最佳答案
如何在 Ruby 中从字符串中提取子字符串?
例如:
String1 = "<name> <substring>"
我想从 String1中提取 substring(即 <和 >上次出现的所有内容)。