in reply to Help constructing a regex that also matches hyphens and parentheses

Let me ask you this, is there a beginning tag that you can also match against?

If we can be a little more specific about the beginning and end, can we match anything in between and return that; instead of expanding your search parameters to include these other special characters?

  • Comment on Re: Help constructing a regex that also matches hyphens and parentheses

Replies are listed 'Best First'.
Re^2: Help constructing a regex that also matches hyphens and parentheses
by Anonymous Monk on Apr 05, 2006 at 17:16 UTC
    This is the whole regex, I shortened it for simplicity in the original post.

    push(@found_items, $1) while $saved_lot =~ m#width='40' height='40' border='0'>\s+((\w+\s*)+)</td>#g;