Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Delimited Backtracking with Regex

by neversaint (Deacon)
on Apr 21, 2006 at 01:52 UTC ( #544751=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    TXXXABCDGXXXCCCDTGYYYCCCYYYCC
    
  2. or download this
    XXXABCDGXXXCCCDTGYYYCCCYYY 
    XXXABCDGXXXCCCDTGYYY  
    XXXCCCDTGYYYCCCYYY    
    XXXCCCDTGYYY
    
  3. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
    my $str = "TXXXABCDGXXXCCCDTGYYYCCCYYYCC";
    $str =~ m/(XXX.*?YYY)/g;  
    print "$1\n";
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://544751]
Approved by GrandFather
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2020-11-28 22:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?