all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* regex search and replace
@ 2006-10-22 21:12 Gary Wessle
  2006-10-22 21:45 ` Gary Wessle
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Gary Wessle @ 2006-10-22 21:12 UTC (permalink / raw)



Hi

I am using GNU emacs 21.4.1 and wanting to use regex to do the
following.

I have few lines in the format 
  -rw-r--r-- 1 fred fred 56823 Oct 14 01:32 samcar
  ...
  -rw-r--r-- 1 fred fred 56823 Oct 14 01:32 manham

I want to end up with 
{ "sam/car", ..., "man/ham" }

so my step by step approach is to remove the 
"  -rw-r--r-- 1 fred fred 56823 Oct 14 01:32 "

then to change aaabbb with aaa/bbb.

then to replace end of line with (", ")

and maybe by then I will learn enough to finish the task.

so, playing around with	incremental regex search and hoping some body
will help me to learn something mean while.

thanks

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-10-24 15:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-22 21:12 regex search and replace Gary Wessle
2006-10-22 21:45 ` Gary Wessle
2006-10-22 23:24   ` Peter Dyballa
2006-10-24 15:37   ` rgb
2006-10-22 22:08 ` Alexis Roda
2006-10-23 13:29 ` aartist

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.