librelist archives

« back to archive

not shoes...

not shoes...

From:
Per Mikaelsson
Date:
2012-04-25 @ 20:54
Hi all,

I know this is not a shoes question but since there are so many skilled
users in this list and helpful users I thought I ask my question here.

So here it goes check this past out http://pastebin.com/e3rG2W4e

What i want to do is on line 76 and 78 there I want to insert text to a
string I have tried many different ways but I am all out off ideas so I
turn to you.

All suggestions is greatly appreciated.

(I have posted this on ruby forum to but one user wanted me to use
nokigiri, that is surly all true but I take one small step at a time and
figured that I would solve it in this simple way.)

Shoes on.....  ehum :)

Regards

Re: [shoes] not shoes...

From:
Steve Klabnik
Date:
2012-04-25 @ 21:17
> figured that I would solve it in this simple way.)

the simple way is to use nokogiri...

Re: [shoes] not shoes...

From:
Scott Werner
Date:
2012-04-25 @ 21:24
If you're looking for an explanation for why everyone is telling you to 
use nokogiri - stack overflow has a few good answers: 
http://stackoverflow.com/a/6752487/505299 for example.

On Wednesday, April 25, 2012 at 5:17 PM, Steve Klabnik wrote: 
> > figured that I would solve it in this simple way.)
> 
> 
> the simple way is to use nokogiri... 

Re: [shoes] not shoes...

From:
Jesse Cooke
Date:
2012-04-26 @ 05:32
REXML, while not sexy, is in the stdlib, so you already have it installed &
you don't need to worry about dependencies.

That being said, check out a builder:
http://nokogiri.org/Nokogiri/XML/Builder.html

On Wed, Apr 25, 2012 at 2:24 PM, Scott Werner <stwerner@vt.edu> wrote:

>  If you're looking for an explanation for why everyone is telling you to
> use nokogiri - stack overflow has a few good answers:
> http://stackoverflow.com/a/6752487/505299 for example.
>
> On Wednesday, April 25, 2012 at 5:17 PM, Steve Klabnik wrote:
>
> figured that I would solve it in this simple way.)
>
>
> the simple way is to use nokogiri...
>
>
>

Re: [shoes] not shoes...

From:
ashbb
Date:
2012-04-26 @ 11:20
Hi Per et al,

Your problem seems NOT to be regexp...

Try out this snippet I edited a little bit: http://pastebin.com/F8kEh7uL

Hope this helps,
ashbb