Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Re: New regex trick...

by japhy (Canon)
on Jul 22, 2002 at 20:12 UTC ( [id://184216]=note: print w/replies, xml ) Need Help??


in reply to Re: New regex trick...
in thread New regex trick...

Present an example that explains your question. pos() refers to the end of the last global match. Are you asking about any interference between \K and \G? I do not foresee any.

_____________________________________________________
Jeff[japhy]Pinyan: Perl, regex, and perl hacker, who'd like a job (NYC-area)
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;

Replies are listed 'Best First'.
Re: Re: Re: New regex trick...
by dws (Chancellor) on Jul 22, 2002 at 20:24 UTC
    pos() refers to the end of the last global match.

    Oops, you're right. The code fragement I was thinking of used pos() - $delta to get the starting point.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://184216]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2024-04-19 03:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found