From: Brian Candler Date: 2007-03-31T17:33:09+09:00 Subject: Re: Regex Black Magic... how to stop matching if char? On Sat, Mar 31, 2007 at 12:34:25AM +0900, Jon wrote: > 1:2>gofaststoppednameval 1:1><......and on > > REXML pukes on the tag... which it should. There > should be some kind of attribute declaration instead. I want to > translate it to something like this: > > I'm trying to make a regex to detect the funny tags. Here is what I have > so far: > > xml_fix=/<(\S+)\s+(\d+):(\d+)>/ > > This is great, but it will match this: > > > > instead of just this: > > Try (\w+) instead of (\S+)