in reply to Re: Problem with Regex
in thread Problem with Regex

thanks a lot for your help, I used the XML::DOM XML parser, it's easy to use, but I'm still having a problem with finding matches in a multi-line string. For Example, I wanna look for a category in a multi-line text:

[category: SOME CATEGORY]

How do i do that !!!

Replies are listed 'Best First'.
Re^3: Problem with Regex
by ŞuRvīvőr (Novice) on Aug 01, 2011 at 13:11 UTC
    actually .. I wanna find all categories in a certain text
      What is a "category" in that context? I don't understand what you want to extract, and why this is suddenly different from your original question (which seemed to be to find the contents of the first tag with a specific name).