I am doing an xml parser to manage my list of mp3s...say after reading my xml file, my variable reads: $tmp = '<artist>artist#1</artist> <title>songtitle</title>...'
anyway, you get the idea...now, I want to extract the artist...so I do: $tmp =~ /<artist>.*?<\/artist>/; $artist = substr($tmp,$-[0]+8,$+[0]-$-[0]-9); where, 8 and 9 is the length of <artist> and </artist>, respectively.... but this is not good for one reason: it's no consistent for every xml tag: I have to know the length of the tag...is there way (as in some clever use of regex maybe?) for me to directly get the wildcat match in the middle? __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]