in reply to Regex only returning partial data
throop
update: you've added more examples, so let me give you some more comments –
Are you ever going to have line breaks in your titles?
Are all your titles going to start with GRP?
I suggest:
If this looks unfamiliar, check out How can I hope to use regular expressions.. I have some doubts that you really want the spec [\w\s\d()\-,]{1,75}. That is, are you really confident that you're not going to see a line likem| \s* GRP \- \d+ (?: \s? \-\d+) # The GRP intro \s+ \- \s+ # The dash [\w\s\d()\-,]{1,75} # I have doubts about this <\/title> |xms
and lose on the '&'?<title> GRP-124-9 - Alkaline Rust Remover Solution (Yugo HTP-1150L - R +ust & Stain Remover)</title>
|
|---|