Hey monks
What sort of Regex would match a line of this type
--,2.000000e+0,6.460000e+0,--,--,--
The commas are used as seperators. This is a result from a SQL statement. I want to find all results with the first and last
three columns empty. The results will always have 6 columns. The second and third column will always take the same form i.e. 1.920000e+2
--,--,--,--,1.920000e+2,1.017000e+1
--,--,--,--,2.560000e+2,1.007000e+1
--,2.000000e+0,6.500000e+0,--,--,--
--,2.000000e+0,6.480000e+0,--,--,--
I need a regex that will match the last two but not the first two.
j
o
h
n
i
r
l
.
Sum day soon I'Il lern how 2 spelI (nad tYpe)
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.