Mercurial > hg > octave-nkf
comparison scripts/path/savepath.m @ 11032:c9b0a75b02e8
Make all regexp in Octave compatible with both POSIX and PCRE.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Tue, 28 Sep 2010 09:25:14 -0700 |
parents | 95c3e38098bf |
children | c776f063fefe |
comparison
equal
deleted
inserted
replaced
11031:d81b6144c4ba | 11032:c9b0a75b02e8 |
---|---|
206 endif | 206 endif |
207 | 207 |
208 endfunction | 208 endfunction |
209 | 209 |
210 function path_elements = parsepath (p) | 210 function path_elements = parsepath (p) |
211 pat = sprintf ("([^%s]+[%s$])", pathsep, pathsep); | 211 pat = sprintf ('([^%s]+[%s$])', pathsep, pathsep); |
212 [jnk1, jnk2, jnk3, path_elements] = regexpi (strcat (p, pathsep), pat); | 212 [jnk1, jnk2, jnk3, path_elements] = regexpi (strcat (p, pathsep), pat); |
213 endfunction | 213 endfunction |
214 | 214 |