how to find code with full line containing only 'dim ds as new Dataset' without finding other similar e.g'dim ds as new Dataset1'

hi, ive got a lot of code  containing
dim ds as new Dataset
dim ds as new Dataset1
dim ds as new Dataset2
dim ds as new Dataset3

i want to ctrl-f or edit-find&replace-find
and get only lines containing
dim ds as new Dataset

i dont want to find the other lines.
could i somehow bring a vbcrlf into the find command?

thanks!




jxhardingAsked:
Who is Participating?
 
TimCotteeHead of Software ServicesCommented:
Hi jxharding,

You can use:

Ctrl+F, enter

"dim ds as new Dataset\n" (without the " of course)

And tick the use checkbox and leave the dropdown at the default of "regular expressions".

This will effectively add a line terminator to the search which is what you need.

Tim Cottee
0
 
jxhardingAuthor Commented:
thanks a stack!
i think i owe you a coffeeshop by now!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.