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?


Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jxhardingAuthor Commented:
thanks a stack!
i think i owe you a coffeeshop by now!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.