B
Brent
Take this string:
"----------------------------------------
"
(i.e., hyphens followed by a newline )
I thought I could match it simply with this Regex:
"-*?\n"
(my interpretation: one or more of "-" followed by a newline)
But when I run it, it seems to match all newlines, regardless of being
preceded by the "-". I know I'm missing something. Any ideas of how to
do this match properly?
Many thanks.
--Brent
"----------------------------------------
"
(i.e., hyphens followed by a newline )
I thought I could match it simply with this Regex:
"-*?\n"
(my interpretation: one or more of "-" followed by a newline)
But when I run it, it seems to match all newlines, regardless of being
preceded by the "-". I know I'm missing something. Any ideas of how to
do this match properly?
Many thanks.
--Brent