/\d/ # contains a digit
/^\D*$/ # doesn't contain a digit
/[abc]/ # contains either the letter a, b, or c
/^[^abc]*$/ # doesn't contain a, b, or c
/foo|bar/ # contains foo or bar
/???????/
私はJavaでタイプ '[email protected]'の電子メールアドレスを検出する正規表現を書こうとしていました。私は単純なパターンを思いついた。 String line = // my line containing email address
Pattern myPattern = Pattern.compile("()(\\w+)(*)@(*)(\\w+)\\.com");
Ma
私はC#Regexを使用しています。 は、どのように私はあなたが本当に単なる文字列から& #Digitを削除するように(任意の上下および/または&) A & E ==> Should leave this as is
a & e ==> Should leave this as is
はなく、この A Ӓ B ==> Should convert to A B
AӒ