pattern syntax for match()

"S. Cowles" <[email protected]> Wed, 25 Mar 2026 12:01:13 -0700 (PDT)
Newsgroups gmane.editors.vim
Message-ID <[email protected]>

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?
i am running vim:
 	VIM - Vi IMproved 9.2 (2026 Feb 14, compiled Mar 25 2026 09:59:45)
 	Included patches: 1-240
 	Huge version with GTK3 GUI.

thanks.

--
s. cowles
scowles at sonic dot net
Key fingerprint = 6DEC FF05 6952 3967 BE66 1BBD 588D 8B40 EFB8 4AA2


-- 
-- 
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/ca2d97a1-0097-72ab-6646-92670559e880%40sonic.net.