Pop-Up Thingie
Sidebar
>>> Magnum BBS <<<
Home
Forum
Files
Dark
Log in
Username
Password
Sidebar
Forum
Usenet
COMP.LANG.RUBY
Ruby Regexp why this expression does not match?
From
vunangluc@gmail.com
@21:1/5 to
All
on Fri Dec 2 20:51:46 2016
I want to use this regex to match any block comment (c-style) in a string.
But why the below does not?
rblockcmt = Regexp.new "/\\*[.\s]*?\\*/" # match block comment
p rblockcmt=~"/* 22/Nov - add fee update */"
nil
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)
Who's Online
Recent Visitors
Keyop
Sun May 22 03:09:50 2022
from
Huddersfield, West Yorkshire
via
Telnet
Keyop
Sun May 22 02:57:48 2022
from
Huddersfield, West Yorkshire
via
Telnet
Keyop
Sun May 22 02:55:27 2022
from
Huddersfield, West Yorkshire
via
Telnet
Keyop
Sun May 22 02:51:06 2022
from
Huddersfield, West Yorkshire
via
Telnet
System Info
Sysop:
Keyop
Location:
Huddersfield, West Yorkshire, UK
Users:
113
Nodes:
8 (
0
/
8
)
Uptime:
21:14:34
Calls:
2,497
Calls today:
14
Files:
8,648
Messages:
1,904,562