@namespace Connected.Components @inherits UIComponent @using System.Text.RegularExpressions @using static Connected.Components.Splitter @foreach (var fragment in _fragments.Span) { if (!string.IsNullOrWhiteSpace(_regex) && Regex.IsMatch(fragment, _regex, CaseSensitive ? RegexOptions.None : RegexOptions.IgnoreCase)) { @fragment } else { @fragment } }