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

Re: Matching bits of 2 strings

by Anonymous Monk
on Jan 22, 2002 at 13:49 UTC ( #140627=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #! /usr/local/bin/perl
    
    ...
    } else {
        print "strings $string1 and $string2 do not match!\n";
    }
    
  2. or download this
    matching part: the date is to
    difference: day
    difference: morrow
    
  3. or download this
    ...
    $concat = $string1 . "#!!#" . $string2;
    
    if ( $concat =~ m/^(.*)(.*)#!!#\1(.*)$/ ) {
    ...
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2014-08-30 10:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (292 votes), past polls