# System.Text.RegularExpressions

``` diff
 namespace System.Text.RegularExpressions {
     public class Regex : ISerializable {
+        public Regex.ValueMatchEnumerator EnumerateMatches(ReadOnlySpan<char> input);
+        public static Regex.ValueMatchEnumerator EnumerateMatches(ReadOnlySpan<char> input, string pattern);
+        public static Regex.ValueMatchEnumerator EnumerateMatches(ReadOnlySpan<char> input, string pattern, RegexOptions options);
+        public static Regex.ValueMatchEnumerator EnumerateMatches(ReadOnlySpan<char> input, string pattern, RegexOptions options, TimeSpan matchTimeout);
+        public ref struct ValueMatchEnumerator {
+            public ValueMatch Current { get; }
+            public Regex.ValueMatchEnumerator GetEnumerator();
+            public bool MoveNext();
+        }
     }
+    public readonly ref struct ValueMatch {
+        public int Index { get; }
+        public int Length { get; }
+    }
 }
```

