codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
$line ='/usr/libexec/postfix/'; if ($line =~ m{^/usr/libexec/postfix}) { print "Match!\n"; } else { print "No match\n"; } $line ='/usr/libexec/postfix/qmgr'; if ($line =~ m{^/usr/libexec/postfix}) { print "Match!\n"; } else { print "No match\n"; } $line ='/usr/sbin/named'; if ($line =~ m{^/usr/libexec/postfix}) { print "Match!\n"; } else { print "No match\n"; }
Private
[
?
]
Run code
Submit