-
-
Notifications
You must be signed in to change notification settings - Fork 807
/
Copy pathrepl.txt
50 lines (36 loc) · 1.08 KB
/
repl.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{{alias}}
Regular expression to split a filename.
The regular expression is platform-dependent. If the current process is
running on Windows, the regular expression is `*.win32`; otherwise,
`*.posix`.
{{alias}}.posix
Regular expression to split a POSIX filename.
When executed, the regular expression splits a POSIX filename into the
following parts:
- input value
- root
- dirname
- basename
- extname
Examples
--------
> var f = '/foo/bar/index.js';
> var parts = {{alias}}.exec( f ).slice()
[ '/foo/bar/index.js', '/', 'foo/bar/', 'index.js', '.js' ]
{{alias}}.win32
Regular expression to split a Windows filename.
When executed, the regular expression splits a Windows filename into the
following parts:
- input value
- device
- slash
- dirname
- basename
- extname
Examples
--------
> var f = 'C:\\foo\\bar\\index.js';
> var parts = {{alias}}.exec( f ).slice()
[ 'C:\\foo\\bar\\index.js', 'C:', '\\', 'foo\\bar\\', 'index.js', '.js' ]
See Also
--------