mirror of
https://github.com/BililiveRecorder/BililiveRecorder.git
synced 2024-12-26 20:26:00 +08:00
10 lines
345 B
C#
10 lines
345 B
C#
|
using System.Text.RegularExpressions;
|
||
|
|
||
|
namespace BililiveRecorder.Core
|
||
|
{
|
||
|
public static class RoomIdFromUrl
|
||
|
{
|
||
|
public static readonly Regex Regex = new Regex("""^(?:(?:https?:\/\/)?live\.bilibili\.com\/(?:blanc\/|h5\/)?)?(\d+)\/?(?:[#\?].*)?$""", RegexOptions.Compiled | RegexOptions.Singleline | RegexOptions.IgnoreCase);
|
||
|
}
|
||
|
}
|