in reply to Regex question
i need a suggestion on how to do this in more elegant way
i have this regex that for which every line is evaluated through a while() loop. but some lines do not contain all necesery parameters for a regex to match and therefor if a parameter Positives is missing then the whole line would be skipped and that is not good.Now I am confused. The first quote suggests you want another expression for your regexp. The second quote suggest that your regexp is wrong. Do you really want another wrong way to parse your lines?
Personally, I'd go for correctness first, elegance later.
|
|---|