[Scilab-users] Fwd: End of line and tab characters in SCILAB

2015-09-10 Thread Samuel Enibe
Dear sir, Could you please let me know the command to detect white spaces such as end of line and tab characters in SCILAB. I tried the "\n" and "\t" respectively but they did not work. Thank you very much. God bless you. -- Samuel Ogbonna Enibe BEng (Nig), MSc (Reading, England), PhD (Nig) Pr

Re: [Scilab-users] Fwd: End of line and tab characters in SCILAB

2015-09-10 Thread Samuel Gougeon
Hello, If you are processing strings with only ASCII characters -- with no UTF-8 extensions --, you may use ascii() and then test the presence of ascii(10) for "\n" or ascii(9) for "\t". But the most efficient way is to use a regular expression. In a regexp, EndOfLine is represented with $. As

Re: [Scilab-users] Fwd: End of line and tab characters in SCILAB

2015-09-10 Thread Samuel Enibe
Thank you very much. The string was generated from Excel 2003 files. Some cells contained blank spaces which when processed for use in a LaTeX document or csv file, the blank lines cause errors and had to be removed manually. I tried using the expression datax = strsubst(datax, "\n", " ");//r

Re: [Scilab-users] Fwd: End of line and tab characters in SCILAB

2015-09-10 Thread Samuel Gougeon
Hello, Le 10/09/2015 23:14, Samuel Enibe a écrit : Thank you very much. The string was generated from Excel 2003 files. Some cells contained blank spaces which when processed for use in a LaTeX document or csv file, the blank lines cause errors and had to be removed manually. I tried using the e