home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sources / wanted / 4015 < prev    next >
Encoding:
Internet Message Format  |  1992-08-18  |  1.1 KB

  1. Xref: sparky comp.sources.wanted:4015 comp.unix.programmer:4359
  2. Path: sparky!uunet!pmafire!news.dell.com!swrinde!mips!decwrl!bu.edu!cs!tasos
  3. From: tasos@cs.bu.edu (Anastasios Kotsikonas)
  4. Newsgroups: comp.sources.wanted,comp.unix.programmer
  5. Subject: Need regular expression routines
  6. Message-ID: <93983@bu.edu>
  7. Date: 18 Aug 92 21:43:25 GMT
  8. Sender: news@bu.edu
  9. Followup-To: comp.sources.wanted
  10. Organization: Computer Science Department, Boston University, Boston, MA, USA
  11. Lines: 26
  12. Originator: tasos@cs
  13.  
  14.  
  15. Hi all,
  16. I am looking for regular expression routines a la re_* (bsd) and reg* (sysv)
  17. to do pattern matching that would give me somehow back the substrings
  18. they actually matched. For examplei, if:
  19.  
  20. a.out '.*main.*argv)' c.c
  21.  
  22. matches the line:
  23.  
  24. int main (int argc, char **argv);
  25.  
  26. these routines should return to me:
  27. 1) $1 = "int "
  28. 2) $2 = " (int argc, char **"
  29.  
  30. or perhaps return to me the starting and ending addresses.
  31.  
  32. Thanks in advance,
  33.  
  34. Tasos
  35. -- 
  36. --
  37. Tasos Kotsikonas |   tasos@cs.bu.edu    | Work : Advanced Visual Systems
  38. Ex BU Country     |                      | email: tasos@avs.com
  39. Club Member.     |                      | Duties: none
  40.