13 lines
336 B
C#
13 lines
336 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|$|[\[\]<>.,;:!?/|-])"
|
|
);
|
|
}
|
|
}
|