Search the web
Sign In
New User? Sign Up
RubyOnRails · Ruby on Rails
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
regular expression   Message List  
Reply | Forward Message #89 of 107 |
Re: regular expression

--- In RubyOnRails@yahoogroups.com, "sangeetha_geethu05"
<sangeetha_geethu05@...> wrote:
> $key_word="C++"
>
> reg.rb:3: nested *?+ in regexp: /C++/ (RegexpError)

try to escape the "+" since it has special meaning in regex.

$key_word = "c\+\+"




Wed Jan 30, 2008 11:25 am

tmangner
Offline Offline
Send Email Send Email

Forward
Message #89 of 107 |
Expand Messages Author Sort by Date

Hi, While the time of executing the following regular expression pattern match , it show some error message, Can any one help me?? code: $key_word="C++" ...
sangeetha_geethu05
sangeetha_ge...
Offline Send Email
Mar 2, 2007
1:55 pm

... try to escape the "+" since it has special meaning in regex. $key_word = "c\+\+"...
Torsten Mangner
tmangner
Offline Send Email
Jan 30, 2008
1:17 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help