Untitled

Run Settings
LanguageJavaScript
Language Version
Run Command
// const s="AB(UY(IO))AY"; // const regsp=/\(([^()]*)\)/i; // const regsp2=/[({})]/g; // var subset =regsp.exec(s) // console.log(subset) const s="RegExr str eet. was created by gskinner.com.Edit the Expression & Text to see matches. Roll over matches or the expression for details. PCRE & JavaScript flavors of RegEx are supported. Validate your expression with Tests mode.The side bar includes a Cheatsheet, full Reference, and Help. You can also Save & Share with the Community and view patterns you create or favorite in My Patterns.Explore results with the Tools below. Replace & List output custom results. Details lists capture groups. Explain describes your expression in plain English." const regsp=/\b(T|t)h.\b/g; var result=[]; while((match=regsp.exec(s))!==null){ result.push(match[0]); } console.log(result)
Editor Settings
Theme
Key bindings
Full width
Lines