CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
(.*?)

 



perlwatcher
User

Jul 23, 2009, 12:20 PM

Post #1 of 3 (456 views)
(.*?) Can't Post

what does this regular expression translate to ?

can anyone help please ?


KevinR
Veteran


Jul 23, 2009, 2:09 PM

Post #2 of 3 (453 views)
Re: [perlwatcher] (.*?) [In reply to] Can't Post

It means to match zero or more of anything as little as possible and store it in pattern memory.
-------------------------------------------------


daryl552007
Novice

Jul 23, 2009, 4:23 PM

Post #3 of 3 (449 views)
Re: [KevinR] (.*?) [In reply to] Can't Post

To get the result of that you may use $1.

Example:

string = this is it

regex is this (.*?)it

$1= is

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives