Search Results

Search: Posts Made By: itskov
2,796
Posted By itskov
I agree it does but it also captures thing I...
I agree it does but it also captures thing I wouldn't want to catch like - GGGGG

Try running -
echo 'GGGGGGGG' | egrep '(.)([^\1]\2\1'

And you'll get GGGGGG echoed on the screen.

I...
2,796
Posted By itskov
Hey! Thanks for the fast reply ! But...
Hey!

Thanks for the fast reply !

But the RegExp you wrote will accept strings of the form 'xxxx' and 'yyyy'.
I'm looking for a pattern that maches on 'xyyx' (Where x is different character...
2,796
Posted By itskov
Strange RegExp Behaviour
Hello,

I was trying to identify lines who has a word of the following pattern "xyyx" (where x, and ys are different characters).

I was trying the following grep -
egrep '(\S)([^\1])\2\1'
...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 01:31 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy