Ask a Question related to Ruby, Design and Development.
Re: Error in REXML<[email protected]e.net>
On Tue, 28 Oct 2003, Daniel Carrera wrote:
> Can anyone confirm this? :
> $ ruby -v
> ruby 1.8.0 (2003-08-04) [sparc-solaris2.8]
> $ ruby -rrexml/document -e ""
> /home3/dcarrera/lib/ruby/site_ruby/1.8/rexml/doctype.rb:178: warning:
> regexp has `]' without escape
> Indeed, if you look at the source, line 178 has:
> source.match(/\s*]\s*>/um, true) <--------
> rescue ParseException
> That doesn't look right to me. On the other hand, I did have rexml
> working before I reinstalled Ruby, and if this were a but it would have
> been noticed.
> Can anyone shed any light on this? Is this line correct? (it must be).
> If so, does anyone know what might be wrong with my system?
"<!DOCTYPE ... [ ... ]>" or something similar that has the "]>"
The warning (not error :-) message is new in 1.8.0, so I guess anyone
who's put a literal ] in a regex should probably now escape it.
David Alan Black
home: [email][email protected][/email]
work: [email][email protected][/email]
- Hi -- On Fri, 21 Nov 2003 [email protected] wrote: Just to clarify: "This" means my solution, not your question :-) David
"stereotyping" (was: Strong Typing (Managing metadata aboutattribute types))<[email protected]e.net><[email protected]e.net>Hi -- On Tue, 18 Nov 2003, Thien Vuong wrote: Class name checking doesn't ensure needed behavior. Actually, let me say first that while I...
- Hi -- On Sat, 1 Nov 2003, Kurt V. Hindenburg wrote: See thread starting at <http://www.ruby-talk.org/84500>. David
- Whoops, that was a message from March I just replied to. We're getting another wave of old messages. David -- David Alan Black home:...
- On Thu, 9 Oct 2003 [email protected] wrote: Whoops, I mean how it gets into the second one at all. David -- David Alan Black