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
/
((((\b(#|\w)+\b\.)?(\bprototype\b\.)?(\b(#|\w)+\b)(\s*\=\s*)?)?(\b(#|\w)+\b\s*)\([\s\w,=]*\s*\))|(\bclass\b\s+\b\w+\b\s*(extends\s*\b\w+\b))(?=\s*\{[\s\S]+\}))(?=\s*\{[\s\S]+\})
/
gm
Input 1
/** * Created by jetbrains web development IDE ( Web/PhpStorm ). * Project: web-component - spineNav * User: Pascal Gaudin * Mail: pascal.gaudin@zimmerbiomet.com * Date: 14/01/2023 * Time: 14:00 */ /** * * @type {Window.HTMLElementExtd} */ window.HTMLElementExtd = class HTMLElementExtd extends HTMLElement { shadowRoot; style; elementCustomName; /** * * @param props */ constructor(props) { super(props); this.shadowRoot = this.attachShadow({mode: 'open'}); this.host=this.shadowRoot.host; this.style= document.createElement('style'); this.elementCustomName = this.host.tagName.toLowerCase() let css = Tools.fetchSync(`web-component/${this.elementCustomName}/default.css`); const iJson=new Css(css) const jsonCss= iJson.toJson(); console.log('logg : ', jsonCss); css += Tools.fetchSync(`web-component/${this.elementCustomName}/custom-element.css`); this.style.textContent = css; this.shadowRoot.appendChild(this.style); } /** * * @param obj