Right. Now, if you put a /x qualifier on, and change you're '>'s to '#'s, you've got a well- (some would save over-) commented regex ;^)
Read the Owl book if you're really interested in learning this -- imo, one of the best written technical books O'Reilly publishes. On Wed, 20 Feb 2002, Peter R. Wood (Lists) wrote: > > So, I think you really want: > > > > if ( $query =~ m#/\*\+\s+(.+?)\s+\*/# ) > > Ok, so let me make sure I am reading your pattern correctly: > > / > match a single / > \* > followed by a single * > \+ > followed by a single + > \s+ > followed by one or more spaces > (.+?) > followed by one or more non-newline characters, which will match up > to the first occurrance of the next character after the ?, the contents of > the match being placed in $1 > \s+ > followed by one or more spaces > \* > followed by a single * > / > followed by a single / -- Steve Reppucci [EMAIL PROTECTED] | Logical Choice Software http://logsoft.com/ | =-=-=-=-=-=-=-=-=-=- My God! What have I done? -=-=-=-=-=-=-=-=-=-=
