[Scilab-users] Using double quote character in regular expressions
Hi, I am trying to scan a file using mopen, mtell and mgetl. I need to check each line against different regular expressions, one of them having some double quote characters inside it and that's causing me trouble. The regular expression is as follows: but that generates an error in Scilab (5.4.0): The lines I am trying to read look line of the following: Any suggestion on how to do this? I have been scratching my head and searching on Google for some time, but to no avail. Many thanks in advance, Arnaud -- View this message in context: http://mailinglists.scilab.org/Using-double-quote-character-in-regular-expressions-tp4026079.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users
Re: [Scilab-users] Using double quote character in regular expressions
On 27/02/2013 16:41, amiege wrote: Hi, I am trying to scan a file using mopen, mtell and mgetl. I need to check each line against different regular expressions, one of them having some double quote characters inside it and that's causing me trouble. The regular expression is as follows: but that generates an error in Scilab (5.4.0): The lines I am trying to read look line of the following: Any suggestion on how to do this? I have been scratching my head and searching on Google for some time, but to no avail. Many thanks in advance, Arnaud -- View this message in context: http://mailinglists.scilab.org/Using-double-quote-character-in-regular-expressions-tp4026079.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users I cannot read your code and error samples. Is that a problem on the email you send? Antoine ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users
Re: [Scilab-users] Using double quote character in regular expressions
Antoine Monmayrant wrote I cannot read your code and error samples. Is that a problem on the email you send? Antoine ___ users mailing list users@.scilab http://lists.scilab.org/mailman/listinfo/users Sorry about this, not sure why that is. Display looks OK on http://mailinglists.scilab.org/Using-double-quote-character-in-regular-expressions-td4026079.html http://mailinglists.scilab.org/Using-double-quote-character-in-regular-expressions-td4026079.html . Anyway, I think I have answered my own question. The trick appears to be to use 2 double quote characters and remove the / characters enclosing the expression. Not sure if the whole of the code definitely works, but progress has been made. Thanks, Arnaud -- View this message in context: http://mailinglists.scilab.org/Using-double-quote-character-in-regular-expressions-tp4026079p4026081.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users
Re: [Scilab-users] Using double quote character in regular expressions
On 27/02/2013 17:00, amiege wrote: Antoine Monmayrant wrote I cannot read your code and error samples. Is that a problem on the email you send? Antoine ___ users mailing list users@.scilab http://lists.scilab.org/mailman/listinfo/users Sorry about this, not sure why that is. Display looks OK on http://mailinglists.scilab.org/Using-double-quote-character-in-regular-expressions-td4026079.html http://mailinglists.scilab.org/Using-double-quote-character-in-regular-expressions-td4026079.html . Anyway, I think I have answered my own question. The trick appears to be to use 2 double quote characters and remove the / characters enclosing the expression. Not sure if the whole of the code definitely works, but progress has been made. Well, to get a in a scilab string delimited by , you need to put 4 : a=; // a contains the string Thanks, Arnaud -- View this message in context: http://mailinglists.scilab.org/Using-double-quote-character-in-regular-expressions-tp4026079p4026081.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users