Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
more flexible regexp
authoralegrand <alegrand@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 25 Jul 2005 16:04:24 +0000 (16:04 +0000)
committeralegrand <alegrand@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 25 Jul 2005 16:04:24 +0000 (16:04 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@1564 48e7efb5-ca39-0410-a469-dd3cf9ba447f

tools/MSG_visualization/colorize.pl

index f7d066f..586b479 100755 (executable)
@@ -45,7 +45,7 @@ sub pidcolor {
 while (<>) {
     $orgline = $thisline = $_;
 
-    if ( $thisline =~ /^\[(\w+):(\w+):\((\d+)\) ([0-9\.]*)\] ([^\[]*) \[([^\[]*)\] (.*)$/ ) {
+    if ( $thisline =~ /^\[([^:]+):([^:]+):\((\d+)\) ([0-9\.]*)\] ([^\[]*) \[([^\[]*)\] (.*)$/ ) {
        $host=$1;
        $procname=$2;
        $pid=$3;