[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mysterious hidden end of line characters.

From: Thierry Volpiatto
Subject: Re: Mysterious hidden end of line characters.
Date: Thu, 31 Jan 2008 17:04:47 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

Peter Dyballa <Peter_Dyballa@Web.DE> writes:

> Am 31.01.2008 um 11:20 schrieb Thierry Volpiatto:
>> The problem is when locale is french or else maybe, the regex that
>> match "Mot de passe :" don't exist.
> Could be this works:
>       "\\(\\(\\(Enter \\|[Oo]ld \\|[Nn]ew \\|'s \\|login \\|Kerberos
> \\|
> CVS \\|UNIX \\| SMB \\|LDAP \\|\\[sudo] \\|^\\)[Pp]assword\\( (again)\
> \)?\\|pass phrase\\|\\(Enter \\|Repeat \\|Bad \\)?[Pp]assphrase\\)\\
> (?:, try again\\)\\|Mot de passe \\)?\\(?: for [^:]+\\)?:\\s *\\'"
> It's a very complicated structure that takes into account that you
> might fail to enter correctly a Kerberos, or CVS, or SMB, or LDAP
> password, some pass phrase, and I don't know what else.
> Forgetting all this troublesome stuff, just describe another option
>       \\|Mot de passe
> with a final SPC that is then followed by
>       ?\\(?: for [^:]+\\)
> so you have to put everything before this expression into a froup with
> \\(...\\). Or this is more correct?
>       "\\(\\(\\(Enter \\|[Oo]ld \\|[Nn]ew \\|'s \\|login \\|Kerberos
> \\|
> CVS \\|UNIX \\| SMB \\|LDAP \\|\\[sudo] \\|^\\)[Pp]assword\\( (again)\
> \)?\\|pass phrase\\|\\(Enter \\|Repeat \\|Bad \\)?[Pp]assphrase\\)\\
> (?:, try again\\)?\\(?: for [^:]+\\)\\|Mot de passe \\)?:\\s *\\'"
> Mostly guessing, not completely understanding.
Not working for the moment, i keep trying.
What i find is that Mot de passe_: is 
Mot de passe.:

Here is the describe of the character:

        character:   (160, #o240, #xa0)
preferred charset: iso-8859-1 (Latin-1 (ISO/IEC 8859-1))
       code point: 0xA0
           syntax: .    which means: punctuation
         category: b:Arabic j:Japanese l:Latin
      buffer code: #xC2 #xA0
        file code: #xC2 #xA0 (encoded by coding system utf-8)
          display: by this font (glyph code)
     courier:pixelsize=14:foundry=adobe:weight=bold:slant=r:width=normal (#x61)
   hardcoded face: nobreak-space

Character code properties are not shown: customize what to show

There is an overlay here:
 From 1 to 17
  face                 regex-tool-matched-face

\([Mot de passe]*.*:*[blank]?\)
that regex work in regex-tool but don't work in the whole regexp

A + Thierry
Pub key:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]