Extracing specific tags from arbitrary plain text
问题 I want to parse plain text comments and look for certain tags within them. The types of tags I'm looking for look like: <name#1234> Where "name" is a [a-z] string (from a fixed list) and "1234" represents a [0-9]+ number. These tags can occur within a string zero or more times and be surrounded by arbitrary other text. For example, the following strings are all valid: "Hello <foo#56> world!" "<bar#1>!" "1 < 2" "+<baz#99>+<squid#0> and also<baz#99>.\n\nBy the way, maybe <foo#9876>" The