While trying to recover an damaged archive file I obtained an
`almost' valid fortran file:
There are a lot of lines starting with single letters.
Now I tried to remove these lines by
(replace regular-expression "^[^cC0-9* ].*$" "" nil)
This deleted all lines of the file, including comments and fortran lines
starting with blanks.
When I did a 're-serach-forward' with the same regexp, I found
precisely the lines I wished to remove.
After playing a while on a narrowed region, I succeeded on that region,
but the rest of the file was deleted again.
Is there a different behaviour of these regexps in search and replace?
Any help appreciated!
(Current version: 18.57)
With kind regards
Alois Steindl, Tel.: (0222) 58801 / 5529
Inst. for Mechanics II, Fax.: (0222) 5875863
A-1040 Wiedner Hauptstr. 8-10