|
I assume you're using python? Python probably has a regular expression library, so you could use a regular expression like '^-+$' to match lines that only contain -'s . Or you could decide that every --- line will have exactly 12 dashes and you could use a string comparison function to see if the value of the line is eq to '------------' .
__________________
Stop intellectual property from infringing on me
|