Help with regular expressions and gsub


#1

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,

car lorem ipusum

.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.


#2

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.


#3

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 :wink: