home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / emacs / 2716 < prev    next >
Encoding:
Internet Message Format  |  1992-07-27  |  1.7 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!gatech!concert!mcnc!aurs01!klassa
  2. From: klassa@aurs01.UUCP (John Klassa)
  3. Newsgroups: comp.emacs
  4. Subject: Re: regexp help
  5. Keywords: regexp search
  6. Message-ID: <60976@aurs01.UUCP>
  7. Date: 27 Jul 92 17:10:41 GMT
  8. References: <60974@aurs01.UUCP>
  9. Sender: news@aurs01.UUCP
  10. Reply-To: klassa%aurfs1.aur.alcatel.com@rockdal.aud.alcatel.com (John Klassa)
  11. Organization: Alcatel Network Systems, Raleigh NC
  12. Lines: 28
  13.  
  14. In article <60974@aurs01.UUCP>, I write:
  15.  
  16. >I'm trying to do a *single* regexp search (for use with the 'occur' function)
  17. >that will find all lines that contain:
  18. >
  19.             ... stuff deleted ...
  20.  
  21. I've gotten two responses...  To summarize, use either:
  22.  
  23.     \<\(if\|else\)\>[^{^J]*$
  24. or
  25.     \<\(if\|else\)\>[^{\n]*$
  26.  
  27. Thanks to those who responded!
  28.  
  29. John
  30. <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
  31. <> John Klassa              <>  Father to son, overheard in a men's room: <>
  32. <> Sofware Engineer         <>  "The game will be over in an hour, son."  <>
  33. <> Alcatel Network Systems  <>  "How long's that, Dad?"                   <>
  34. <> Raleigh, NC              <>  "Sesame Street."                          <>
  35. <> (919) 850-1246           <>  "Oh."                                     <>
  36. <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
  37. <>         klassa%aurfs1.aur.alcatel.com@rockdal.aud.alcatel.com          <>
  38. <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
  39. <> The attitudes and opinions expressed herein do not necessarily         <>
  40. <> reflect those of my employer...  or those of my wife, for that matter. <>
  41. <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
  42.