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'

Posted on 2006-03-30
Last Modified: 2010-04-23
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?


Question by:jxharding
    LVL 44

    Accepted Solution

    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

    Author Comment

    thanks a stack!
    i think i owe you a coffeeshop by now!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
    It’s quite interesting for me as I worked with Excel using for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now