Task: Extract a Substring from a String in Ruby Using Regular Expressions
Task: Extract a Substring from a String in Ruby Using Regular Expressions: a task in Terminal-Lego-15k (Harbor dataset). You need to write a Ruby script that extracts a substring from within a larger string using regular expressions. Specifically, the script should extract the content within <name…
The task
You need to write a Ruby script that extracts a substring from within a larger string using regular expressions. Specifically, the script should extract the content within `<name>` tags from a given input string.
Part of PrimeIntellect/Terminal-Lego-15k.