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-06-30 15:01:40 -04:00
|
|
|
|
public static readonly Regex Mention = new Regex(@"(^|.?[ \n\.]+)@([a-zA-Z0-9_]+)(?=\s|$|[\[\]<>,;:'\.’!?/—\|-]|(. ))");
|
2021-02-01 20:19:14 -05:00
|
|
|
|
}
|
|
|
|
|
}
|