The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
perl regexp mirusnet Shell Programming and Scripting 1 04-04-2008 05:15 PM
Perl RegExp to remove last character from strings ospreyeagle Shell Programming and Scripting 2 04-03-2008 03:55 PM
perl regexp error , I cant understand what is wrong umen Shell Programming and Scripting 4 10-19-2006 11:35 AM
loop throw perl regexp selection umen Shell Programming and Scripting 6 08-28-2006 11:35 AM
Need Help with Perl REGEXP mh53j_fe Shell Programming and Scripting 1 01-17-2006 09:49 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 09-01-2006
umen umen is offline
Registered User
  
 

Join Date: Aug 2005
Posts: 239
lazy capture don't work (regexp in perl)

hello all
im trying to capture only the first brackets but no matter what i do i keep capturing from the first brackets to the last one , here what i have :
<% if (!Env.strLen(oidInvoice)); szDocumentTitle = Env.formatS("S",Env.getMsg("BP_INVOICE_ENUMERATION_CREATE_TITLE")) %>

and the regexp i have is :

if($r=~ m/<%\s*(if\s*\(.+?\))\s*%>/gi){
.....
}

i like to capture only : if (!Env.strLen(oidInvoiceEnum))
with no luck what im doing wrong?
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 01:32 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0