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
/
<[A-Z][A-Za-z:]*[^>]* ((?!class)[^ @]*)=[^>]*
/
gm
Input 1
1
New
<LinkTo @route="foo.bar" @model={{this.model}} class="fancy-link"> foo </LinkTo> <Input @checked={{this.isChecked}} @type="checkbox" class="fancy-checkbox" /> <Foobar class="fancy-foobar" myArgument={{false}} as |foobar|> <Foo @customerId={{this.model.id}} page={{50}} /> <Foobar class="fancy-foobar" myArgument={{false}} /> </Foobar>
Extraction
<LinkTo @route="foo.bar" @model={{this.model}} class="fancy-link"> foo </LinkTo> <Input @checked={{this.isChecked}} @type="checkbox" class="fancy-checkbox" /> <Foobar class="fancy-foobar" myArgument={{false}} as |foobar|> <Foo @customerId={{this.model.id}} page={{50}} /> <Foobar class="fancy-foobar" myArgument={{false}} /> </Foobar>