Learn
Practice
Interview
Resources
Newsletter
F
Toggle theme
0
F
0
Toggle menu
Animations
← Back to All Animations
Add Bold Tag in String
Bookmark
Intervals
Bold Array
Trie
Input
Standard
Overlapping
All Bold
Custom
s
=
abcxyz123
,
words
=
abc,123
s
a
b
c
x
y
z
1
2
3
s
a
b
c
x
y
z
1
2
3
word = "abc"
s
a
b
c
x
y
z
1
2
3
word = "123"
s
a
b
c
x
y
z
1
2
3
intervals
abc
word = "123"
s
a
b
c
x
y
z
1
2
3
intervals
abc
123
s
a
b
c
x
y
z
1
2
3
intervals
abc
123
s
a
b
c
x
y
z
1
2
3
intervals
abc
123
merged
s
a
b
c
x
y
z
1
2
3
intervals
abc
123
merged
result =
<b>
a
s
a
b
c
x
y
z
1
2
3
intervals
abc
123
merged
result =
<b>
abc
</b>
s
a
b
c
x
y
z
1
2
3
intervals
abc
123
merged
result =
<b>
abc
</b>
xyz
<b>
123
</b>
s
a
b
c
x
y
z
1
2
3
intervals
abc
123
merged
result =
<b>
abc
</b>
xyz
<b>
123
</b>
algo
master
.
io
Step:
Start: bold every occurrence of [abc, 123] in "abcxyz123"
0 / 12
Input
Standard
Overlapping
All Bold
Custom
s
=
abcxyz123
,
words
=
abc,123
0 / 12
algo
master
.
io
Step:
Start: bold every occurrence of [abc, 123] in "abcxyz123"