<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Sylvestre Ledru a écrit :
<blockquote cite="mid:1241600501.11877.47868.camel@korcula.inria.fr"
 type="cite">
  <blockquote type="cite">
    <pre wrap="">Please find attached SEP #26 (V1.0) about strsplit(). This SEP
proposes to add the capability to split a string on a single
character, a group of characters or a regular expression (a pattern).

As usual, please comment it as needed. 
    </pre>
  </blockquote>
  <pre wrap=""><!---->I don't know if it is normal but I get a blank #3 page?
  </pre>
</blockquote>
No, Fixed with the attached file.<br>
<blockquote cite="mid:1241600501.11877.47868.camel@korcula.inria.fr"
 type="cite">
  <pre wrap="">
Two points:
* if str is a matrix of string, will pattern be only one string applied
to all the strings in the matrix ?
  </pre>
</blockquote>
"str" cannot be a matrix of string because strsplit() returns a matrix
of string from a "single string".<br>
<br>
<blockquote cite="mid:1241600501.11877.47868.camel@korcula.inria.fr"
 type="cite">
  <pre wrap="">* could you add an example with "limit" ?
  </pre>
</blockquote>
<br>
To split off the first four fields from a line from /etc/passwd:<br>
<br>
<tt>-->strsplit(password_line,”:”,5)<br>
<br>
ans =<br>
! root                 !<br>
</tt><tt>! x                    !</tt><br>
<tt>! 0                    !</tt><br>
<tt>! 0                    !<br>
! root:/root:/bin/bash !</tt><br>
<blockquote cite="mid:1241600501.11877.47868.camel@korcula.inria.fr"
 type="cite">
  <pre wrap="">
Sylvestre
  </pre>
</blockquote>
Pierre<br>
<br>
<pre class="moz-signature" cols="72">-- 
==============================================
Pierre MARECHAL
                   ------
Fondation DIGITEO - Consortium Scilab
Domaine de Voluceau - B.P. 105
78153 Le Chesnay Cedex
Bâtiment 23 - Bureau 24
                   ------                  
Email : <a class="moz-txt-link-abbreviated" href="mailto:pierre.marechal@scilab.org">pierre.marechal@scilab.org</a>
Tél : +33 (0)1 39 63 56 81
Fax : +33 (0)1 39 63 55 94
==============================================
</pre>
</body>
</html>