mirror of
https://github.com/BililiveRecorder/BililiveRecorder.git
synced 2024-12-25 11:54:43 +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);
|
||
|
}
|
||
|
}
|