🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

2 total messages Started by David Spencer Thu, 21 Jan 1993 16:21
howto replace . with \. in a string..
#2157
Author: David Spencer
Date: Thu, 21 Jan 1993 16:21
13 lines
758 bytes
I'm having trouble doing the following:

I have a string within elisp like "main.c" and I want to 
search for it in a file, so I want to convert it to "main\.c"
so that it matches exactly - but how to modify the string from
within elisp?

Do I have to write my own routine/loop and keep calling substring or
string-match?

		Thanks,
			Dave Spencer
			dspencer@retix.com
Re: howto replace . with \. in a string..
#2160
Author: k p c
Date: Fri, 22 Jan 1993 04:37
4 lines
927 bytes
i think you mean that you want to do a non-regexp search.  if you
still want to do a regexp search, try (regexp-quote).
-- 
i'm open to comparing research career notes with other cogsci/cogneuro people.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads