WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

How To
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Regular Expression Question


Question:

Need help from the RegExp gurus...I need to find a way to locate certain lines in a file.

Sample target lines...

tbl.Name = "MyTable"
tbl.Columns.Append "Column1", adInteger
tbl.Columns.Append "Column2", adInteger
tbl.Columns.Append "Column3", adVarWChar, 50
cat.Tables.Append tbl
I want to find lines that have a period, followed by characters/numbers, 1 or more spaces.

I've been using

   \\.[A-Za-z_0-9]* +\"
which finds all of the .Append lines above but skips the 1st and last.

Ideally, I'd like to skip the lines with the equal sign = and match the others. If I remove the \" it finds the line with the = sign. I've tried negating the = sign but it didn't work.

Answer:

finally got it...

force search-forward "\\.[A-Za-z0-9_]+ +[A-Za-z0-9_\"]"

Neat site to for the rest of you that are interested...

http://www.regular-expressions.info/tutorial.html


Article ID:   W17019
File Created: 2007:07:03:14:27:38
Last Updated: 2007:07:03:14:27:38