Thursday, October 10, 2019

Re: regexp : windows filename recognition


+ ../ 16.0 KiB [D] 2019-10-10 10:37:27 +0200 55
configuremingw32 4.7 KiB 2019-10-10 10:37:04 +0200 644
+ Vim.8.1.2127/ 4.0 KiB [D] 2019-10-10 10:23:03 +0200 55
+ Vim.8.1.2122/ 4.0 KiB [D] 2019-10-10 10:16:09 +0200 55
+ 20191010_102841_Vim.8.1.2127/ 4.0 KiB [D] 2019-10-10 10:08:41 +0200 55
+ 20191010_101731_Vim.8.1.2127/ 4.0 KiB [D] 2019-10-10 09:59:24 +0200 55
+ 20191010_100613_Vim.8.1.2127/ 4.0 KiB [D] 2019-10-10 08:54:35 +0200 55
+ Vim.8.1.2125/ 4.0 KiB [D] 2019-10-09 19:04:40 +0200 55
+ 20191009_191004_Vim.8.1.2125/ 4.0 KiB [D] 2019-10-09 18:20:33 +0200 55
+ 20191009_182820_Vim.8.1.2125/ 4.0 KiB [D] 2019-10-09 11:16:00 +0200 55
+ 20191009_112320_Vim.8.1.2125/ 4.0 KiB [D] 2019-10-09 09:39:36 +0200 55
+ 20191009_094707_Vim.8.1.2125/ 4.0 KiB [D] 2019-10-09 09:30:49 +0200 55
+ 20191009_093639_Vim.8.1.2125/ 4.0 KiB [D] 2019-10-09 09:23:39 +0200 55
+ 20191009_092924_Vim.8.1.2125/ 4.0 KiB [D] 2019-10-09 09:16:20 +0200 55
+ 20191009_092151_Vim.8.1.2125/ 4.0 KiB [D] 2019-10-09 09:03:48 +0200 55
+ 20191008_142547_Vim.8.1.2122/ 4.0 KiB [D] 2019-10-08 09:38:42 +0200 55
sh.exe.stackdump 608.0 B 2019-10-08 09:13:04 +0200 644
git.exe.stackdump 669.0 B 2019-10-08 09:12:45 +0200 644
+ Vim.8.1.2120/ 4.0 KiB [D] 2019-10-07 17:50:21 +0200 55
+ 20191007_175658_Vim.8.1.2120/ 4.0 KiB [D] 2019-10-07 17:22:22 +0200 55
+ 20191007_172955_Vim.8.1.2120/ 4.0 KiB [D] 2019-10-07 17:13:11 +0200 55
+ 20191007_171951_Vim.8.1.2120/ 4.0 KiB [D] 2019-10-07 14:25:42 +0200 55
+ 20191007_143406_Vim.8.1.2120/ 4.0 KiB [D] 2019-10-07 08:41:50 +0200 55
+ Vim.8.1.2115/ 4.0 KiB [D] 2019-10-05 17:52:13 +0200 55
+ Vim.8.1.2110/ 4.0 KiB [D] 2019-10-04 14:41:06 +0200 55
+ 20191004_144736_Vim.8.1.2110/ 4.0 KiB [D] 2019-10-04 09:39:19 +0200 55
+ 20191004_093657_Vim/ 0.0 B [D] 2019-10-04 09:36:58 +0200 55
+ Vim.8.1.2109/ 4.0 KiB [D] 2019-10-03 10:44:46 +0200 55
+ 20191003_105314_Vim.8.1.2109/ 4.0 KiB [D] 2019-10-03 09:58:37 +0200 55
+ 20191003_100731_Vim.8.1.2109/ 4.0 KiB [D] 2019-10-03 08:08:27 +0200 55
+ Vim.8.1.2108/ 4.0 KiB [D] 2019-10-02 11:13:06 +0200 55
+ 20191002_112141_Vim.8.1.2108/ 4.0 KiB [D] 2019-10-02 09:21:17 +0200 55
+ 20191002_092904_Vim.8.1.2108/ 4.0 KiB [D] 2019-10-01 21:53:27 +0200 55
+ ruby/ 48.0 KiB [D] 2019-10-01 21:42:13 +0200 55
+ 20191001_215905_Vim.8.1.2108/ 4.0 KiB [D] 2019-10-01 21:03:30 +0200 55
+ Vim.8.1.2107/ 4.0 KiB [D] 2019-10-01 17:13:10 +0200 55
+ Vim.8.1.2106/ 4.0 KiB [D] 2019-10-01 15:12:23 +0200 55
+ Vim.8.1.2105/ 4.0 KiB [D] 2019-10-01 14:05:51 +0200 55
+ Vim.8.1.2090/ 4.0 KiB [D] 2019-10-01 11:31:52 +0200 55
+ gdb-8.3/ 8.0 KiB [D] 2019-09-23 14:43:25 +0200 55
Don't understand why it returns 2 first chars on this example :

+ 20191009_191004_Vim.8.1.2125/                                                                                              4.0 KiB [D] 2019-10-
echo substitute(getline(line('.')),'^..\zs\(.\+\)\(\s\+\d\+\.\d\+\)\@=.*$','\1', "") returns + 20191009_191004_Vim.8.1.2125/

Thank you for help.
NiVa

Le mercredi 9 octobre 2019 18:19:24 UTC+2, Andy Wokula a écrit :
Am 09.10.2019 um 14:16 schrieb Ni Va:
> Anything chars contained in windows'filename before a lot of spaces
> and begining on third char after start of line.
>
> Anything chars of filename= \w\s-_. many times
>
> ^..filename                                    some others chars.*$

     /^..\zs.\+$

List of false positives:
     XXX

--
Andy

--
--
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 vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/68b5a53f-5d7d-4ae4-b733-fe58a125847f%40googlegroups.com.

No comments:

Post a Comment