Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 898
  • Last Modified:

How can I retrieve a distinct list of variables using Adobe Dreamweaver's search functionality?

How can I retrieve a distinct list of variables using Dreamweaver's search functionality?

I would like to do a search in Dreamweaver that would return a distinct list of variables prefixed with 'session.emailContent'.  I could get the list pretty easily by outputting structKeyList().  However, I was just wondering if it were possible to use Dreamweaver to get the list by searching 'Selected Files in Site'.  If I can, and if it's quicker, it'd be nice to have that ace up my sleeve.  Thanks in advance!
0
brianmfalls
Asked:
brianmfalls
  • 2
1 Solution
 
Jason C. LevineNo oneCommented:
Hi brianmfalls,

There probably isn't a way to do it with Dreamweaver.  While you can use a regular expression to locate the variable name by pattern, DW won't return the name of the variable.  Instead, it could replace it or show the result in the Results Panel, but that can't really be manipulated in a serious way.

Using grep from the command line is a better method.
0
 
brianmfallsAuthor Commented:
I've not heard of 'grep'.  Can you elaborate?
0
 
Jason C. LevineNo oneCommented:
grep is a *nix command that searches text files via regular expressions.  It's very powerful and I recommend that people learn it:

http://en.wikipedia.org/wiki/Grep
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now