regex - Regular expression for might have a space -


i trying regular expession might have space. searching occurences of

word1word2 

and

word1 word2  

i try:

grep "word1[ +]word2" mylog.txt 

but not work.

any ideas?

try

grep "word1 \?word2" mylog.txt 

Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -