J
jason
The following vb code displays every line that has a particular string
in it. How do I list every line that does not have that string. "!"
does not seem to work for me and not sure where to place it in match
logic.
<vb code>
readin("linetest.txt")
dim linex as string
linex="line"
Dim xxx as string
xxx = "^(.+)"+linex+"(.+)$"
Dim regexp2 as Regex = new Regex (xxx, RegexOptions.IgnoreCase or
RegexOptions.Multiline )
Dim objMatch as Match
dim z as string
For Each objMatch in regexp2.Matches(session("readin"))
z = objMatch.ToString()
response.write(z + "<br>")
Next
</vb code>
Thanks in advance for any help or info.
in it. How do I list every line that does not have that string. "!"
does not seem to work for me and not sure where to place it in match
logic.
<vb code>
readin("linetest.txt")
dim linex as string
linex="line"
Dim xxx as string
xxx = "^(.+)"+linex+"(.+)$"
Dim regexp2 as Regex = new Regex (xxx, RegexOptions.IgnoreCase or
RegexOptions.Multiline )
Dim objMatch as Match
dim z as string
For Each objMatch in regexp2.Matches(session("readin"))
z = objMatch.ToString()
response.write(z + "<br>")
Next
</vb code>
Thanks in advance for any help or info.