Thread Filtern nach klammer-ausdrücken (6 answers)
Opened by OnkelBlacky at 2006-09-19 15:47

FIFO
 2006-09-20 00:26
#70027 #70027
User since
2005-06-01
469 Artikel
BenutzerIn

user image
[quote=renee,19.09.2006, 14:00]Meinst Du so etwas:
Code: (dl )
1
2
my @parens = $string =~ /\(([^\)]+)/g;
print $_,"\n" for @parens;
[/quote]
muss die RegEx nicht
Code: (dl )
 /\(([^\)]+?)/g

heißen (not greedy)?

Edit: Nein, Denkfehler Schlechter Rotwein heute ... ;-)\n\n

<!--EDIT|FIFO|1158697681-->
Everyone knows that debugging is twice as hard as writing a program in the first place. So if you're as clever as you can be when you write it, how will you ever debug it? -- Brian Kernighan: "The Elements of Programming Style"

View full thread Filtern nach klammer-ausdrücken