Page 1 of 1
					
				How can I delete all except necessary worlds
				Posted: Mon Jan 31, 2005 5:32 pm
				by Artem
				I want to save in the file this text <a href=".*<br>
but the rest of text i want delete, how can do it?
			 
			
					
				
				Posted: Mon Jan 31, 2005 5:32 pm
				by Abacre
				It's not clear what do you mean.
Please give a source text and resulting text that you should get after transformation.
			 
			
					
				
				Posted: Mon Jan 31, 2005 5:32 pm
				by Artem
				Roman wrote:It's not clear what do you mean.
Please give a source text and resulting text that you should get after transformation.
source Text
abc htr
dsf <a href=".*<br>
<a href=".*<br>
dfgfh hfgh
hfghf
resulting text
<a href=".*<br>
<a href=".*<br>
P.S. Forgive me for my bad english
 
			 
			
					
				Delete unnecessary Worlds??
				Posted: Mon Jan 31, 2005 5:32 pm
				by irbrian
				I think it is not for us to judge which worlds are necessary. We live in this world, and while I realize not everyone would agree to its level of necessity, I personally wouldn't be very pleased if someone deleted it without any kind of warning or explanation.

 
			 
			
					
				
				Posted: Mon Jan 31, 2005 5:32 pm
				by Abacre
				Artem, it's possible to do your task. I am just searching for correct
r.e.
Primarily it should be in 3 pairs of r.e. that should be put into batch grid, something
like this:
Search for:
\A.*?(<a href="\.\*<br>)
Replace with:
$1
Search for:
(<a href="\.\*<br>).*(<a href="\.\*<br>)
Replace with:
$1\r\n$2
Search for:
(<a href="\.\*<br>).*?\Z
Replace with:
$1
But these r.e. still need a final turning especially the last one.