YAFLogo

dandan
  • dandan
  • 54.8% (Neutral)
  • YAF Forumling Topic Starter
16 years ago

HI

I want to know what does the next regex stand for and what they r checking

Its from YAF.Classes.Utils/SendMail.cs

if ( !Regex.IsMatch( bodyText, @"^([0-9a-z!@#\$\%\^&\*\(\)\-=_\+])", RegexOptions.IgnoreCase ) ||

!Regex.IsMatch( subject, @"^([0-9a-z!@#\$\%\^&\*\(\)\-=_\+])", RegexOptions.IgnoreCase ) )

Sponsor
Jaben
  • Jaben
  • 100% (Exalted)
  • YAF Developer
16 years ago
Checking for extended characters -- too see if the message should be sent with Unicode on.