--0016e6dbdea4a59079049e35bb9c
Content-Type: text/plain; charset=UTF-8

I played with your regex on rubular, and came up with this as one possible
solution:

http://www.rubular.com/r/LBaUQqW7SL

But there are a number of possibilities, depending on exactly what you want
to do.

On Fri, Mar 11, 2011 at 8:39 AM, Mario Ruiz <tcblues / gmail.com> wrote:

> I want to replace the text for fecha on the string but I don't know how
> to do it:
>
>
> aid:'name',
>  label :'Name',
>  type:'string',
> idx : 3,
> fecha: 24/13/2009,
> whitelabel:'true',
> fecha: 11/01/2009"
>
>
> the regular expression I'm using is:
> /'?fecha'? *: *'(.*)' *, *$/
>
> and the result I want is:
> aid:'name',
>  label :'Name',
>  type:'string',
> idx : 3,
> fecha: 01/03/2010,
> whitelabel:'true',
> fecha: 01/03/2010"
>
> --
> Posted via http://www.ruby-forum.com/.
>
>

--0016e6dbdea4a59079049e35bb9c--