How to find this pattern by regular expression?
- From: Ahmad <ahmad.abdulghany@xxxxxxxxx>
- Date: Sun, 30 Mar 2008 07:56:25 -0700 (PDT)
Hi,
I want to find the pattern: PATTERN that can contain lower case or
upper case characters, digits, and special characters like : _ ; ( )
& .
A sample context is:
-- Start here (this line is not in context)
PATTERN {
@ a line containing anything(comment line)
@ multiple comment lines can exist
// Another type of comments
/* Third type of comments
and it's a multiline comment
*/
x1=a AND b
y1= x1 OUTSIDE layer100
copy y1
//Comments can exist anywhere in the text (between the braces)
// this is the closing brace }
-- End here (this line is not in context)
I need when apply regular expression on the above sample context, it
return the word PATTERN.
Any guidance about the most efficient RE to perform that?
Thanks and best regards,
Ahmad
.
- Follow-Ups:
- Re: How to find this pattern by regular expression?
- From: Tad J McClellan
- Re: How to find this pattern by regular expression?
- From: Gunnar Hjalmarsson
- Re: How to find this pattern by regular expression?
- Prev by Date: Re: ssh ssh
- Next by Date: Re: How to find this pattern by regular expression?
- Previous by thread: FAQ 7.29 How can I use a variable as a variable name?
- Next by thread: Re: How to find this pattern by regular expression?
- Index(es):
Relevant Pages
|