[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Regexp to find second of three words
From: |
Tim Johnson |
Subject: |
Regexp to find second of three words |
Date: |
Mon, 07 Aug 2006 00:51:48 -0000 |
User-agent: |
slrn/0.9.8.0 (Linux) |
Hello:
I've constructed a regexp to use with imenu.
(note: this mailer is probably going to wrap it)
"set[ ]+'[A-Za-z0-9*-_.]+[
]\\(d\\(?:ef\\|oes\\)\\|func\\(?:tion\\)?\\|has\\|lfunc\\|sub\\)\\>"
My goal is to capture from the following example
set 'printf function
printf
but the regex is really picking up
function
I'd appreciate any help on correcting this.
Thanks
tim
--
Tim Johnson <tim@johnsons-web.com>
http://www.alaska-internet-solutions.com
- Regexp to find second of three words,
Tim Johnson <=