[Scilab-users] Regex problem

Samuel Gougeon sgougeon at free.fr
Fri Aug 19 18:04:55 CEST 2016


Le 19/08/2016 17:20, Samuel Gougeon a écrit :
> Le 19/08/2016 13:26, Gerhard Kreuzer a écrit :
>> .../...
>> Any idea how I can parse my file and get the binary data blocks into 
>> variables, or at least get pointers to  the starting points, so I am 
>> able to read the binary data with some file read function?
>
> Here is a working example supporting ascii(10). It looks tha "ms" 
> modifiers must be used together:
Aa, actually not: "s" works alone, but as a global modifier (not checked 
after you locally in a capturing parenthesis):

--> [trash,trash,captures] = regexp(s, "/c.*?i/*s*i"); captures
  captures  =

!cd
efghi      !
!              !
!Clmnop
fg hi  !

SG

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20160819/73fb42f6/attachment.htm>


More information about the users mailing list