Thread Regular Expression, Extraktion Skalarnamen: Regular Expression, Extraktion Skalarnam
(6 answers)
Opened by Gast at 2006-02-09 12:27
Möchte aus einem Programm Skalarnamen extrahieren und suche einen reg. Expression - Ausdruck, der das macht. Bsp:
push (@output,"\nBlueprint provisioned at $time_blueprint .....: $blueprint_id (Type: $order_type)\nTBNFs provisioned for this blueprint .....: "); if ( ($time_blueprint,$req_a,$blueprint_id) = m/^(\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d\.\d\d\d)\|.*\|.*\|($internal_req_id\D?) \|.+bluePrintId (\d+)$/ ) { Die Namen wären dann: $time_blueprint $blueprint_id $order_type $req_a $internal_req_id Weiß mir jemand weiter? |