home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.sources.wanted:4015 comp.unix.programmer:4359
- Path: sparky!uunet!pmafire!news.dell.com!swrinde!mips!decwrl!bu.edu!cs!tasos
- From: tasos@cs.bu.edu (Anastasios Kotsikonas)
- Newsgroups: comp.sources.wanted,comp.unix.programmer
- Subject: Need regular expression routines
- Message-ID: <93983@bu.edu>
- Date: 18 Aug 92 21:43:25 GMT
- Sender: news@bu.edu
- Followup-To: comp.sources.wanted
- Organization: Computer Science Department, Boston University, Boston, MA, USA
- Lines: 26
- Originator: tasos@cs
-
-
- Hi all,
- I am looking for regular expression routines a la re_* (bsd) and reg* (sysv)
- to do pattern matching that would give me somehow back the substrings
- they actually matched. For examplei, if:
-
- a.out '.*main.*argv)' c.c
-
- matches the line:
-
- int main (int argc, char **argv);
-
- these routines should return to me:
- 1) $1 = "int "
- 2) $2 = " (int argc, char **"
-
- or perhaps return to me the starting and ending addresses.
-
- Thanks in advance,
-
- Tasos
- --
- --
- Tasos Kotsikonas | tasos@cs.bu.edu | Work : Advanced Visual Systems
- Ex BU Country | | email: tasos@avs.com
- Club Member. | | Duties: none
-