Hello, I'd like to be able to use Vim to get characters from a string that fit the following criteria
1) Is the first character in the string OR 2) Is an upper-case character OR 3) Is the first character in a "word", meaning the "b" in "foo_bar" or the "g" in "foo.groovy" I have a Perl script which gets close: #!/usr/bin/perl $string = 'fooBarBazQuk_hello.world'; @matches = $string =~ /(^\w|[A-Z]|_\w|\W\w)/g; print "Matches are: " . join ":", @matches; With the Perl script, I can just weed out characters like "_" and "." after I get my list of matches. I've tried using Vim's matchstr and the matchlist functions, but can't quite get the regex correct. Can anyone help? Thanks --Nate --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
