Help for this page

Select Code to Download


  1. or download this
      our $rgx_plain = qr/^([a-z]+)\d*$/;
      our $rgx_fancy = qr/
    ...
                           \d*       # optional digits
                           $         # end of string
                         /x;
    
  2. or download this
      say $rgx_plain;
      say clean_regex($rgx_fancy);
    
  3. or download this
      say clean_regex($rgx_plain);