The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #7 (permalink)  
Old 02-02-2008
metalwarrior metalwarrior is offline
Registered User
  
 

Join Date: Feb 2008
Posts: 16
hi tnx but that's not what I am looking for.
like I said I dont want to specify then pattern for sed.
I want it automatically find all the patterns that are repeated and do something with them. the regular expression would be something like this:
'.*\{3,\}\.*\1'
but I can only save the whole thing into register1, I cant distinguish between the first pattern, repeated pattern and possible contents between them.