tim / christian thank you. both forms work as expected: single and double quoted forms. in all of my quoting permutations, i had been escaping the bar, also.
works fine, now. many thanks. On March 25, 2026 12:41:15 PM PDT, Christian Brabandt <[email protected]> wrote: > >On Mi, 25 Mär 2026, Tim Chase wrote: > >> On 2026-03-25 12:01, S. Cowles wrote: >> > i would like to do the following operation: >> > let m = match( "foo" , "foo\|beep" ) >> > however, i get no match. (m is (-1).) >> > what is the correct pattern syntax to enable this match? >> >> Because they're strings, do you need to escape the "\", making it >> >> let m = match( "foo" , "foo\\|beep" ) > >Or a bit more readable, use single quotes instead. > >Thanks, >Christian >-- >Are we not men? > >-- >-- >You received this message from the "vim_use" maillist. >Do not top-post! Type your reply below the text you are replying to. >For more information, visit http://www.vim.org/maillist.php > >--- >You received this message because you are subscribed to the Google Groups >"vim_use" group. >To unsubscribe from this group and stop receiving emails from it, send an >email to [email protected]. >To view this discussion visit >https://groups.google.com/d/msgid/vim_use/acQ6W0dcgdWjG1p2%40256bit.org. > -- [email protected] +1 510 380 8661 -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/vim_use/4FE63A02-A028-4A71-A507-FB883EEDBB1B%40sonic.net.
