#using <System.dll>
using namespace System;
using namespace System::Text::RegularExpressions;
int main(){
Regex^ regex = gcnew Regex( "[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,4}");
String^ mail1="[email protected]";
String^ mail2="@hoge.org";
Console::WriteLine( "Mail1 is " + regex->IsMatch(mail1) );
Console::WriteLine( "Mail2 is " + regex->IsMatch(mail2) );
return 0;
}
ã©ã£ãã®ãµã¤ãã«ãã£ã奴ãé©å½ã«å å·¥ãã。
ãã®ã³ã¼ããé©å½ãªååã¤ãã¦
cl /clr hoge.cpp
ã¿ããã«ã³ãã³ãããã³ããããå©ãã®ãæ®éã®ã³ã³ãã¤ã«æ¹æ³ã ãã~。
ã¨ããã、æè¿ã²ãããã³ãã³ãã°ã£ããå©ãã¦ããæ°ãããorz
ã³ã¡ã³ã
ã³ã¡ã³ããæ稿