We help IT Professionals succeed at work.

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'

jxharding
jxharding asked
on
Medium Priority
261 Views
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?

thanks!




Comment
Watch Question

Head of Software Services
Commented:
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

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

Commented:
thanks a stack!
i think i owe you a coffeeshop by now!
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.