9fans archive / 2008 / 10 / 357 / prev next From: erik quanstrom <quanstro@cor...> Subject: Re: [9fans] non greedy regular expressions Date: Fri, 24 Oct 2008 17:47:00 -0400 > Ok, I finally see the point... thanks. > Only one last question: So is there any simple way (using existing > regexps) to find 'the interesting parts' in my last example?: > ABCthe_interesting_partCBA blabla bla ABCthe_interesting_partCBA ... > ...i.e. delimited with ABC from the left and CBA (or e.g. EFG) from the right? > Say I have a file with such a structure and want to only get 'the > interesting parts' form it. doesn't s/ABC(the_interesting_part)CBA/x/g work for you? maybe i don't understand the example. if so, could you explain? - erik