using System; using System.Text.RegularExpressions; class Program { static void Main(string[] args) { Regex regex = new Regex(@"^[a-z]+$"); string s = regex.ToString(); Console.WriteLine(s); } }This code creates a regular expression that matches lowercase letters and then uses the ToString() method to convert it to a string format, which is then printed to the console. The package library for this method is the C# System.Text.RegularExpressions library.