home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!not-for-mail
- From: ren@function.mps.ohio-state.edu (Liming Ren)
- Newsgroups: comp.unix.questions
- Subject: A simple question about lex!
- Date: 22 Dec 1992 12:10:00 -0500
- Organization: Department of Mathematics, The Ohio State University
- Lines: 18
- Distribution: world
- Message-ID: <1h7i58INNms4@function.mps.ohio-state.edu>
- NNTP-Posting-Host: function.mps.ohio-state.edu
-
- This is the first time I am using lex. I am puzzled by the following problem;
-
- I want to match
- beginning of line .I followed by one or more space ,then a number and then
- newline. For example
- .I 123\n
- .I 234\n
-
-
- I tested ^\.I[ ]+ [0-9]+$ , ^\.I[ ]+[0-9]+$ and ^\.I [ ]+ [0-9]+$,
- none of them works!
-
- I tried ^\.I" "[0-9]+$ , it works only for patten with one space in between.
- Please help me to find the correct specification.
-
-
- Many thanks!
-
-