in reply to Matching nested begin/ends
A pair of {} works fine.Unmatched ( before HERE mark in regex m/begin # Start w +ith 'begin', ( << HERE ?: # Followed by (?>[^be]+) # Not a b or e, many times, |b(?!egin) # Or a b not starting 'begin', |e(?!nd) # Or an e not starting 'end', |(??{ $re }) # Or a balanced begin/ at fudge line + 6.
____________________________________________________
** The Third rule of perl club is a statement of fact: pod is sexy.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Matching nested begin/ends
by Abigail-II (Bishop) on Jul 31, 2002 at 12:49 UTC |