Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: More Variable length regex issues

by BrowserUk (Patriarch)
on Jun 09, 2003 at 06:05 UTC ( [id://264255]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    a fixed bit: a,variable,length, repeated, bit [some more fixed stuff]
    more fixed: more,variable,stuff [more fixed]
    
  2. or download this
    while( my $data = <DATA> ) {
        $data =~ m[^
    ...
        my @variable_bits =  $2 =~ m[(\w+)[,\s]]g;
        print "$first_bit: (@variable_bits) [$last_bit]";
    }
    
  3. or download this
    #! perl -slw
    use strict;
    ...
    __DATA__
    1: or more [semi-fixed] fields: and,some,variable,length,stuff [more(f
    +ixed)stuff]
    2: kind of [similarly] formated: records,with,variable,differences [em
    +bedded(in the)records]
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (5)
As of 2024-03-29 06:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found