[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Mysterious hidden end of line characters.
From: |
Peter Dyballa |
Subject: |
Re: Mysterious hidden end of line characters. |
Date: |
Thu, 31 Jan 2008 12:17:59 +0100 |
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.
--
Greetings
Pete
Isn't vi that text editor with two modes... one that beeps and one
that corrupts your file?
– Dan Jacobson, on comp.os.linux.advocacy
- Re: kgdb in emacs, (continued)
- Re: kgdb in emacs, Sanjeev Kumar.S, 2008/01/27
- Re: kgdb in emacs, Nick Roberts, 2008/01/27
- Re: kgdb in emacs, Sanjeev Kumar.S, 2008/01/27
- Re: kgdb in emacs, Nick Roberts, 2008/01/27
- Re: kgdb in emacs, Sanjeev Kumar.S, 2008/01/27
- Re: kgdb in emacs, Nick Roberts, 2008/01/27
Re: Mysterious hidden end of line characters., Peter Dyballa, 2008/01/26
- Re: Mysterious hidden end of line characters., David, 2008/01/30
- Message not available
- Re: Mysterious hidden end of line characters., Tim X, 2008/01/31
- Re: Mysterious hidden end of line characters., Thierry Volpiatto, 2008/01/31
- Re: Mysterious hidden end of line characters.,
Peter Dyballa <=
- Re: Mysterious hidden end of line characters., Thierry Volpiatto, 2008/01/31
- Re: Mysterious hidden end of line characters., Thierry Volpiatto, 2008/01/31
- Re: Mysterious hidden end of line characters., Thierry Volpiatto, 2008/01/31
- Re: Mysterious hidden end of line characters., Thierry Volpiatto, 2008/01/31
Re: Mysterious hidden end of line characters., David, 2008/01/31
Re: Mysterious hidden end of line characters., David, 2008/01/31