Esgrimidor:
--------------------------------------------------------------------------------
I need to replace in an archive with more than 80000 lines those that begins
with  :


12

14

2

"- "

"31 "

etc  
replace with a null string 

but these strings also appears at the end or the middle of some lines. 

How can I propose exactly with regular expressions ?

Best Regards
--------------------------------------------------------------------------------

Hi,
if I understand correctly, you can use a regex pattern like:

^(12|14|2|- |31 ).*

(replacing with empty string, with regular expressions checked in the replace
dialog)

^ is a special character, which matches the beginning of the line (or of the
whole string) in this case;
than you can list the needed line beginnings separated by the alternation symbol
| and enclose the alternatives in parens;
.* matches anything that might follow after that until the line-end.

hth,
   vbr

-- 
<http://forum.pspad.com/read.php?2,67876,67877>
PSPad freeware editor http://www.pspad.com

Odpovedet emailem