String auf Format prüfen?

From: Jens Klüsener (jens_at_kluesener.info)
Date: 05/31/04


Date: Mon, 31 May 2004 11:13:54 +0200

Hi

Ich möchte ein Ergebnis welches in einem String ist auf sein korrektes
Format prüfen. Zuerst habe ich alle Leerzeichen entfernt (mit strtr).

Die Form sieht dann immer wie folgt aus:

Das erste oder die ersten beiden Zeichen sollen Zahlen zwischen 0 und 99
sein. Darauf folgt immer ein Doppelpunkt und dann wieder ein oder zwei
Zahlen von 0 bis 99.

Gibt es eine Funktion mit der man generell solche Dinge überprüfen kann?

Vielen Dank

Jens



Relevant Pages

  • Re: Date format detection
    ... Specifies the locale for which the date string is to be formatted. ... date format for this locale. ... the system default-date format for the specified locale. ... be enclosed within single quotation marks in the date format picture. ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: Date format detection
    ... > Specifies the locale for which the date string is to be formatted. ... > date format for this locale. ... > the system default-date format for the specified locale. ... > be enclosed within single quotation marks in the date format picture. ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: Date confusion
    ... Read my reply elsewhere in this string. ... > integer portion of the value represents the date as the number of days ... >> If you are working with a numeric date and you want the format DDMMYYYY, ... Another reason for preferring to store a date as text would be personal preference. ...
    (microsoft.public.access.modulesdaovba)
  • Re: Regular Expression - old regex module vs. re module
    ... If you want to include backslashes in a string, ... a one character string, which is unlikely to be what you wanted. ... formating characters before a format, then you should use a negative ... #read in and parse a format template ...
    (comp.lang.python)
  • Re: Regular Expression - old regex module vs. re module
    ... The ReportTemplate class reads a template file or string containing a ... header and line format for multiple calls with sequence data. ... def _format: ...
    (comp.lang.python)