cloutier--bird.makeup/src/BirdsiteLive.Common/Regexes/UserRegexes.cs

10 lines
326 B
C#
Raw Normal View History

2021-02-01 20:19:14 -05:00
using System.Text.RegularExpressions;
namespace BirdsiteLive.Common.Regexes
{
public class UserRegexes
{
public static readonly Regex TwitterAccount = new Regex(@"^[a-zA-Z0-9_]+$");
2023-01-20 10:23:18 -05:00
public static readonly Regex Mention = new Regex(@"(.?)@([a-zA-Z0-9_]+)(\s|$|[\[\]<>,;:'\.!?/|-]|(. ))");
2021-02-01 20:19:14 -05:00
}
}