PASTEBIN
| #1 paste tool since 2002
create new paste
tools
api
archive
faq
PASTEBIN
create new paste
trending pastes
sign up
login
my alerts
my settings
my profile
Don't like ads?
PRO users
don't see any ads ;-)
Public Pastes
Untitled
4 sec ago
Untitled
4 sec ago
Untitled
5 sec ago
Untitled
Python | 5 sec ago
Untitled
7 sec ago
Untitled
20 sec ago
datapath
35 sec ago
Untitled
30 sec ago
Untitled
By: a guest on
Jun 26th, 2012
| syntax:
None
| size: 0.25 KB | hits: 10 | expires: Never
download
|
raw
|
embed
|
report abuse
|
print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
irb(main):020:0> line =~ /CHANCREATE: Channel #(.+) created by (.+)!/
=> 48
irb(main):021:0> print $1
baz=> nil
irb(main):022:0> if ((line =~ /CHANCREATE: Channel #(.+) created by (.+)!/) == 0)
irb(main):023:1> print $1
irb(main):024:1> end
=> nil
create a
new version
of this paste
RAW Paste Data
irb(main):020:0> line =~ /CHANCREATE: Channel #(.+) created by (.+)!/ => 48 irb(main):021:0> print $1 baz=> nil irb(main):022:0> if ((line =~ /CHANCREATE: Channel #(.+) created by (.+)!/) == 0) irb(main):023:1> print $1 irb(main):024:1> end => nil