13 lines
305 B
C#
13 lines
305 B
C#
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Numerics;
|
|
using System.Text;
|
|
using System.Text.RegularExpressions;
|
|
|
|
namespace NejCommon.Validation;
|
|
|
|
public class StandardTextAttribute : RegexAttribute{
|
|
public StandardTextAttribute() : base(@"^[a-zA-Z0-9\-_,. ]*$","Aa bb_123-145"){
|
|
|
|
}
|
|
} |