Re: How to use Lua patterns in Find

From: gummybears <wneimei....at.gmail.com>
Date: Sun, 18 Apr 2010 21:59:07 -0700 (PDT)

Thanks to Robert and Mitchell, both your answers were really helpful.

I was used to Ruby regular expressions, but the Lua patterns
are much easier for me to understand. And what I really like
about textadept, is that the matched part is highlighted.
Makes it really easy to work with patterns.

On 18 apr, 23:00, mitchell <mforal.n....at.gmail.com> wrote:
> Hi,
>
> > Newbie question (read the Lua pattern documentation)
>
> > How to use the Lua pattern switch in Find ?
>
> > Tried the following patterns In the Find dialog with the Lua pattern
> > switch enabled
>
> > /sometext.$/  => no match
> > sometext.$ => no match
> > sometext. => finds "sometext " but not "sometext more text"
>
> > I thought the dot (.) should find all characters. Combined with the $
> > should it not find
> > the text "sometext more text" ?
>
> sometext.-[\r\n]
>
> $ will match to the end of the document, not the end of line.
>
> Mitchell
>
>
>
> > --
> > You received this message because you are subscribed to the Google Groups "textadept" group.
> > To post to this group, send email to textadept.at.googlegroups.com.
> > To unsubscribe from this group, send email to textadept+unsubscribe.at.googlegroups.com.
> > For more options, visit this group athttp://groups.google.com/group/textadept?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups "textadept" group.
> To post to this group, send email to textadept.at.googlegroups.com.
> To unsubscribe from this group, send email to textadept+unsubscribe.at.googlegroups.com.
> For more options, visit this group athttp://groups.google.com/group/textadept?hl=en.

-- 
You received this message because you are subscribed to the Google Groups "textadept" group.
To post to this group, send email to textadept.at.googlegroups.com.
To unsubscribe from this group, send email to textadept+unsubscribe.at.googlegroups.com.
For more options, visit this group at http://groups.google.com/group/textadept?hl=en.
Received on Mon 19 Apr 2010 - 00:59:07 EDT

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 11:43:52 EST