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
/
(^{{TemplateX)|\|\s*(c|e|g|h|i|l[ ]*\=[ ]*)(.*)|(}}$)
/
gm
Input 1
1
New
{{TemplateX | a = Foo bar Blah blah Fizbin foo Ipsum lorem |b =1 |c = 0fillertext |d = 1alphabet | e = | f = 10: One Hobbit | g = aaaa, bbbb, cccc, dddd |h = 15000 |i = -15000 | j = Level 4 [[domain:filk|Songs]] | k =7 fizbin, 8 [[domain:trekkies|Shatners]] |l = |m = }}
Substitution
{{TemplateX | a = Foo bar Blah blah Fizbin foo Ipsum lorem |b =1 |c = 0fillertext |d = 1alphabet | e = | f = 10: One Hobbit | g = aaaa, bbbb, cccc, dddd |h = 15000 |i = -15000 | j = Level 4 [[domain:filk|Songs]] | k =7 fizbin, 8 [[domain:trekkies|Shatners]] |l = |m = }}