13 lines
317 B
C#
13 lines
317 B
C#
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Numerics;
|
|
using System.Text;
|
|
using System.Text.RegularExpressions;
|
|
|
|
namespace NejCommon.Validation;
|
|
|
|
public class IdentifierTextAttribute : RegexAttribute{
|
|
public IdentifierTextAttribute() : base(@"\A[A-Za-z0-9][A-Za-z0-9._/-]*\z","Aa_bb-12.3"){
|
|
|
|
}
|
|
} |