[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    bugs/html/wizard/include
From:       Martijn Klingens <klingens () kde ! org>
Date:       2002-08-04 18:12:37
[Download RAW message or body]


bugs/html/wizard/include kdeversion.php,1.19,1.20
Author: mklingens


Modified Files:
         kdeversion.php
Log Message:
Fix the regexp to also work when *not* called from the bug report dialog:

-   "/([^()]*) ?\(KDE (\d\.\d(?:.\d)?(?: \(.*\))?)\)(?: \((.*)\))/",
+   "/(?:([^()]*) \()?KDE (\d\.\d(?:.\d)?(?: \([^)]*\))?)(?:\) \((.*)\))?/",

Oh, and I think the above thing is a nice candidate for the 'most unreadable
regexp' contest. Ideas on how to make this more readable are welcome, since
each and every symbol is most likely absolutely required to parse all
possible combinations of KDE version strings, so rewriting the regexp is
less of an option.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic