Thanks Marnen.  I am trying to use regular expression to replace the
text "spec" in TextMate with "mug".  I am trying to avoid instances of
"spec" where it does not mean the name of the model, e.g. "aspect".
So I use the following regular expression:  [^a-zA-Z]spec .  That
would catch "@spec" which is what I want.  But if I tell TextMate to
replace that with "mug", I lose the character before "spec".  TextMate
replaces "@spec" with "mug" .  How can I make it replace @spec with
@mug ?

Thanks.

On Jan 26, 6:43 pm, Marnen Laibow-Koser <[email protected]> wrote:
> Learn by Doing wrote:
> > Thanks.  So the problem is the "Spec" model name?  
>
> Most likely.
>
> > There is no other
> > way but to change "Spec" to something else?
>
> Probably not.  And this should not be difficult.
>
>
>
> > I started with RailsSpace as a starting point a while back but my
> > application has evolved since.
>
> Best,
> --
> Marnen Laibow-Koserhttp://www.marnen.org
> [email protected]
> --
> Posted viahttp://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to