10 lines
316 B
C#
10 lines
316 B
C#
using System.Text.RegularExpressions;
|
|
|
|
namespace BirdsiteLive.Common.Regexes
|
|
{
|
|
public class HashtagRegexes
|
|
{
|
|
public static readonly Regex HashtagName = new Regex(@"^[a-zA-Z0-9_]+$");
|
|
public static readonly Regex Hashtag = new Regex(@"(.?)#([a-zA-Z0-9_]+)(\s|$|[\[\]<>.,;:!?/|-])");
|
|
}
|
|
} |