[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
help with Regexps
From: |
Santiago Mejia |
Subject: |
help with Regexps |
Date: |
Sun, 10 May 2009 22:12:29 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux) |
I have a file that has these three types of entries (they all appear in
the beginning of the line).
1. %\card{\word{Mutter}}{mom, mommy, mother, nut}
2. \card{\atl{die} \word{Erkenntnis}}{cognition, cognizance, perception}
3. \card{\word{Jünglinge}}{teens, younglings}
And I want to be able to use (search-forward-regexp ???) within a
function to find only 3. (and not 1. and 2).
When I try: (search-forward-regexp "^\\card{\\word{[A-Z]"), emacs
complains: Search failed: "^\\card{\\word{[A-Z]" (in fact, even
(search-forward-regexp "^\\card") fails to find anything). What am I
making wrong?
I could also solve the issue by excluding a particular string
(in this case "\atl") from a search. How can one do this?
I read through the info, and tried searching on Google, but I was not
able to find a solution to either attempt. It is probably there
(probably even in the info I read), but I was not able to sort it out.
Thanks in advance for any help.
Santiago.
P.D. I tried posting this in the newsgroups, but it seems that there
was a problem, since I do not see my question appearing there.
- help with Regexps,
Santiago Mejia <=