Re: Pattern questions

2006-05-24 Thread Benji Fisher
On Tue, May 23, 2006 at 02:22:32PM +0200, Zdenek Sekera wrote: if (char =~ '\m[;|?:[EMAIL PROTECTED]*(){}\\_+-[\]/\]') do something endif 2. why when the pattern ends with '+' or '\+' do I get an error? Can you be more specific? I tried :let char = a :echo char =~

RE: Pattern questions

2006-05-24 Thread Zdenek Sekera
Hi, Benji On Tue, May 23, 2006 at 02:22:32PM +0200, Zdenek Sekera wrote: if (char =~ '\m[;|?:[EMAIL PROTECTED]*(){}\\_+-[\]/\]') do something endif 2. why when the pattern ends with '+' or '\+' do I get an error? Can you be more specific? I tried :let

Re: Pattern questions

2006-05-24 Thread Charles E Campbell Jr
Zdenek Sekera wrote: Sorry, I should have been clearer: Note the placement of the '+' in my pattern, somewhere in the middle, there it doesn't cause any problem: if (char =~ '\m[;|?:[EMAIL PROTECTED]*(){}\\_+-[\]/\]' ^ |

RE: Pattern questions

2006-05-24 Thread Zdenek Sekera
-Original Message- From: Charles E Campbell Jr [mailto:[EMAIL PROTECTED] Sent: 24 May 2006 15:55 To: Zdenek Sekera Cc: vim-dev@vim.org Subject: Re: Pattern questions Zdenek Sekera wrote: Sorry, I should have been clearer: Note the placement of the '+' in my pattern

Re: Pattern questions

2006-05-23 Thread A.J.Mechelynck
Zdenek Sekera wrote: I have this: if (char =~ '\m[;|?:[EMAIL PROTECTED]*(){}\\_+-[\]/\]') do something endif Basically it is checking for all non-alphanumeric chars (expect '='). 1. how do I include the ' char?. I can't seem to find a proper way. (I'd like to keep the patter in

RE: Pattern questions

2006-05-23 Thread Zdenek Sekera
-Original Message- From: A.J.Mechelynck [mailto:[EMAIL PROTECTED] Sent: 23 May 2006 14:22 To: Zdenek Sekera Cc: vim-dev@vim.org Subject: Re: Pattern questions Zdenek Sekera wrote: I have this: if (char =~ '\m[;|?:[EMAIL PROTECTED]*(){}\\_+-[\]/\]') do something endif

Re: Pattern questions

2006-05-23 Thread Yakov Lerner
On 5/23/06, Zdenek Sekera [EMAIL PROTECTED] wrote: I have this: if (char =~ '\m[;|?:[EMAIL PROTECTED]*(){}\\_+-[\]/\]') do something endif Basically it is checking for all non-alphanumeric chars (expect '='). 1. how do I include the ' char?. I can't seem to find a proper way. (I'd

RE: Pattern questions

2006-05-23 Thread Zdenek Sekera
-Original Message- From: Yakov Lerner [mailto:[EMAIL PROTECTED] Sent: 23 May 2006 11:37 To: Zdenek Sekera; vim mailing list Subject: Re: Pattern questions On 5/23/06, Zdenek Sekera [EMAIL PROTECTED] wrote: I have this: if (char =~ '\m[;|?:[EMAIL PROTECTED