Forum: Rails-ES Help with regular expressions and gsub

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
John S. (Guest)
on 2009-04-17 21:41
I need to use gsub in a large text. For example, I will like to search
for 'car' in this text.

"Lorem ipum car. Locar ipsum,<p>car lorem ipusum</p>.Lorem car ipsum"


I will like to put 'bike' instead of 'car'. Exactly I need this words,
and not ' bike ', for example. Also, I do not want to do 'Lobike' in
'Locar' (it should remain 'Locar').

I'll appreciate any help.
Juan martin F. (Guest)
on 2009-04-17 21:49
(Received via mailing list)
could you use regular expresion??

On Fri, Apr 17, 2009 at 10:41 AM, John S. <
removed_email_address@domain.invalid> wrote:

> I'll appreciate any help.
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Ror-es mailing list
> removed_email_address@domain.invalid
> http://lists.simplelogica.net/mailman/listinfo/ror-es
>



--
............................................................
J. Martin Fernandez Szutner
removed_email_address@domain.invalid [main address]
móvil: ++521(662)224.02.81
msn: removed_email_address@domain.invalid
skype: martinszutner




...........................................................................................
This e-mail is confidential and/or may contain privileged information.
If you are not the addressee or authorized to receive this for the
addressee, you must not use, copy, disclose, or take any action based on
this message or any
other informat ion herein, please advise the sender immediately by reply
this e-mail and delete this e-mail and its attachments.
...........................................................................................
Manuel González Noriega (Guest)
on 2009-04-17 22:26
(Received via mailing list)
2009/4/17 Martin S. <removed_email_address@domain.invalid>

> could you use regular expresion??
>
>
Hi guys,

you're posting to the ror-es mailing list. The official language for
this
list is Spanish, so I'm gonna have to ask you to take the thread to
elsewhere (or switch to Spanish ;)
This topic is locked and can not be replied to.