[Rubyinstaller-devel] String Manipulation in Ruby

Curt Hibbs curt.hibbs at gmail.com
Thu Jul 6 09:57:39 EDT 2006


You have posted to the wrong list. This mailing list is for the developers
of the one-click installer. If you want help with ruby programming, you
should post to the ruby-talk mailing list:

  http://www.ruby-lang.org/en/20020104.html

Curt

On 7/5/06, Vincent Predoehl <vpredoehl at phoenixwebgroup.com> wrote:
>
> I need to parse this string for the href text:
>
> linkHTML = "<a href="javascript:{if (typeof(Page_ClientValidate) !=
> 'function' ||  Page_ClientValidate()) __doPostBack('CustMstr_repeater
> $_ctl1$_ctl0','')} ">Accounts</a>"
>
> This is ultimately what I need to end up with:
>
> s = "javascript:{if (typeof(Page_ClientValidate) != 'function' ||
> Page_ClientValidate()) top.frames[0].__doPostBack('CustMstr_repeater
> $_ctl1$_ctl0','')} "
>
> The one thing making my life ahrd is that 'top.frames[0].' needs to
> be inserted before the __doPostBack so it will work.  I'm a Ruby noob
> and I don't know anything about RegExp.  Are there string
> manipulation methods I can use to do the job?
>
> Thanks,
> --
> Vincent
>
>
>
> _______________________________________________
> Rubyinstaller-devel mailing list
> Rubyinstaller-devel at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rubyinstaller-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rubyinstaller-devel/attachments/20060706/a1c3d1da/attachment.html 


More information about the Rubyinstaller-devel mailing list