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
/
foo [a-z]*ing
/
g
Input 1
I need a grep regex which I want to run over a text file. The grep command should output each line of the text file which contains a word (let that word be foo) followed by a space and another word which ends with a certain suffic (let that suffix be ing) So the regex should match sequences such as: foo going, foo walking, foo running Please not that the ing should be in the next word after foo. So the regex should NOT match: foo asfd asdfing
Substitution
I need a grep regex which I want to run over a text file. The grep command should output each line of the text file which contains a word (let that word be foo) followed by a space and another word which ends with a certain suffic (let that suffix be ing) So the regex should match sequences such as: foo going, foo walking, foo running Please not that the ing should be in the next word after foo. So the regex should NOT match: foo asfd asdfing