Emmanuel Courcelle wrote: > Nicklas Nordborg a écrit : >> Emmanuel Courcelle wrote: >> >>> Hi Nicklas >>> >>> Here are the first 44 lines of the file >>> I tried to dos2unix-ify, it did not change anything for Base. >>> >>> Thanks for your help ! >>> >> >> I have now tested with your file and it works perfectly. Perhaps it is a >> browser-related problem. I have tested with Internet Explorer 6 and >> Firefix 1.5 on Windows and Mozilla 1.7.6 on Linux. What broswer are you >> using? >> >> /Nicklas >> >> >> ------------------------------------------------------------------------- >> Using Tomcat but need to do more? Need to support web services, security? >> Get stuff done quickly with pre-integrated technology to make your job easier >> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >> _______________________________________________ >> The BASE general discussion mailing list >> basedb-users@lists.sourceforge.net >> unsubscribe: send a mail with subject "unsubscribe" to >> [EMAIL PROTECTED] >> > Hi Nicklas... and others > I thing I found the pb... but I still have some problems. > > 1/ I am working with firefox 2.0. But I tried IE6, mozilla 1.7.6: same > trouble > > 2/ The pb is in the Data header regexp. > To make the stuff work, I have to put by hand the regex: > > Block\tColumn\tRow\tName\tID\tX\tY.* > > If you search through the list archive, you'll find someone who uses > nearly the same regex. > However, I do not understand why if I drop out the last .*, data header > cannot be found...
The regexp must match the entire string. If you drop the .* it will not match whatever comes after the first part. > 3/ Well, anyway I tried to understand why the regex suggested by the > system when you click the button "Data header" did not work, > at least for me. I wonder if the pb could not be related to > international characters: the regex computed by the system is: > > \QBlock Column Row Name ID X Y Dia. F635 > Median F635 Mean F635 SD B635 Median B635 Mean B635 SD > % > B635+1SD % > B635+2SD F635 % Sat. F532 Median F532 > Mean F532 SD B532 Median B532 Mean B532 SD % > > B532+1SD % > B532+2SD F532 % Sat. Ratio of Medians Ratio of > Means Median of Ratios Mean of Ratios Ratios SD Rgn Ratio > Rgn R? F Pixels B Pixels Sum of Medians Sum of Means Log > Ratio F635 Median - B635 F532 Median - B532 F635 Mean - B635 > F532 Mean - B532 Flags\E > > which does not work (separators are TAB, the copy-and-paste transformed > them into space). > If I slightly modify the regex, it works: > > \ABlock Column Row Name ID X Y Dia. F635 > Median F635 Mean F635 SD B635 Median B635 Mean B635 SD > % > B635\+1SD % > B635\+2SD F635 % Sat. F532 Median F532 > Mean F532 SD B532 Median B532 Mean B532 SD % > > B532\+1SD % > B532\+2SD F532 % Sat. Ratio of Medians Ratio > of Means Median of Ratios Mean of Ratios Ratios SD Rgn > Ratio Rgn R. F Pixels B Pixels Sum of Medians Sum of > Means Log Ratio F635 Median - B635 F532 Median - B532 F635 > Mean - B635 F532 Mean - B532 Flags\Z > > The modifications I did are: > > -Escape the + character > -Replace the Rgn R? by Rgn R. (see next mail for this point) A dot matches any character (if you no longer uses \Q and \E). > -Use \A and \Z (perl-compatible regex) instead of \Q and \E \A matches the start of the string and \Z matches the end. This is already a requirement so these are not needed. \Q quotes all characters until \E. Without this there are a lot more characters than + that has to be escaped, so the \Q and \E should be kept (at least for the automatic regexp generation). The only significant change you have made is Rgn R? to Rgn R. Does it still work if you change this to "Rgn R\E.\Q"? Then I believe that your guess about a problem with international characters is correct. If I look at the file the text is "Rgn R²", but somewhere along the way the superscripted "2" is changed to a ?. I have to do some more checking to check if this is the problem. /Nicklas ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ The BASE general discussion mailing list basedb-users@lists.sourceforge.net unsubscribe: send a mail with subject "unsubscribe" to [EMAIL PROTECTED]