In the process of upgrading all my websites, I decided to redesign them so that all URL's default to lower case. This meant changing all image names and paths to lower case as well, which was accomplished using regexes. However, this action inadvertently changed a lot of other things to lowercase too.
Previously, a typical div looked like this:
<div class="Cool R P Wx500">
Now, some divs look like this:
<div class="cool r p wx500">
It should be noted that only some divs and other tags were affected by this change.
I am now seeking a regex pattern that will help me find specific classes such as "Cool," "R," or "Wx500." Since my classes are not always listed in a particular order and some consist of a single letter (e.g., B = border and R = float to the right), finding a suitable regex is proving to be tricky.
Ideally, I would like to search for divs that contain the class "Cool" and then separately search for divs that contain the class "R." It would also be beneficial if these searches could be made case-sensitive. For instance, searching for divs with the class R but only where it has been changed to lower case (e.g., [div class="cool r"])
Is there a way to achieve this? While Dreamweaver offers a reliable regular expression utility, it does not seem to have the functionality to select one class out of a series. As a Mac user, I primarily use Dreamweaver and TextWrangler as my text editors.