Question w/pattern matching
Ill try again. Seems like any time I ask a Q about reg exps, everyone ignores me. Oh well.<BR><BR>I'm wondering about the syntax of a vb reg exp that i need to return a file name ending in either .inc or .asp<BR><BR>With strRegExp<BR> .Pattern = "(_.*.[inc|asp])"<BR> .Global = True<BR> .IgnoreCase = True<BR> End With<BR><BR>I know the pattern is wrong, but what I'm wondering is how I can match a string within a string? The backreference works when I just leave it as .inc, but I thought the pipe was a regexp "or", meaning [this OR that]... instead its pulling any character that matches on either side...<BR><BR>Make sense?