Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
\/\*(.+?)\*\/
/
Input 1
New
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using TMPro; using System.Text.RegularExpressions; using System; public interface IThemeable { } public class TestScript : MonoBehaviour { #region Studio Style class Program : IThemeable { static int _I = 1; delegate void DoSomething(); static DoSomething DelegateMethod = delegate { }; /* This is a multi line quote */ /*single line quote*/ /* single line quote */ /// <summary> /// The quick brown fox jumps over the lazy dog /// THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG /// </summary> static void Main(string[] args) { string normalStr = "The time now is approximately " + DateTime.Now; Uri Illegal1Uri = new Uri("http://packmyboxwith/jugs.html?q=five-dozen&t=liquor"); Regex OperatorRegex = new Regex(@"\S#$", RegexOpt
Extraction
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using TMPro; using System.Text.RegularExpressions; using System; public interface IThemeable { } public class TestScript : MonoBehaviour { #region Studio Style class Program : IThemeable { static int _I = 1; delegate void DoSomething(); static DoSomething DelegateMethod = delegate { }; /* This is a multi line quote */ /*single line quote*/ /* single line quote */ /// <summary> /// The quick brown fox jumps over the lazy dog /// THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG /// </summary> static void Main(string[] args) { string normalStr = "The time now is approximately " + DateTime.Now; Uri Illegal1Uri = new Uri("http://packmyboxwith/jugs.html?q=five-dozen&t=liquor"); Regex OperatorRegex = new Regex(@"\S#$", RegexOpt