Category Archives: Job

Handy Regular Expressions

While working on a Sharepoint css file, I was able to use a nift regex instead of copying and pasting all over the place.

The tag I had looked like this:

#MSOZoneCell_WebPartWPQ4 td h3 a

I wanted to add a tag on the end so that it looked like this:

#MSOZoneCell_WebPartWPQ4 td h3 a, #MSOZoneCell_WebPartWPQ5 td h3 a

I used this Regex in Sharepoint Designer to do so:

Find

#MSOZoneCell_WebPartWPQ4 {.*$}

Replace

#MSOZoneCell_WebPartWPQ4 1, #MSOZoneCell_WebPartWPQ5 1

The “1” is called a “Tagged Expression”.  It refers to the part of the value that is tagged in the “Find” syntax.  You tag something using brackets, so in this case “.*$” was tagged, which corresponded to this part of the result ” td h3 a”.  I had about 10 of these, so this saved me a lot of time.

First Week

Well, I’ve completed my first full week at my new job and everything has been going well so far. Even after only one week, it’s obvious that there are some very smart people here and I look forward to working with them in the future.

I’ve also started to work on my first two projects. The first is a simple addition to a web application, but it looks really cool so far. The second is constructing an intranet using Sharepoint 2007. I had experience with Sharepoint before, but there are so many things that I’ve had to learn about it for this project. I was a little uneasy at first, but I think that I’ll be able to get it done.

New job

After 3 and half years as a consultant, I’ve accepted an offer to work for Barefoot, a local advertising agency. I will be the sole .Net developer in the interactive design department, so wish me luck. The other guys there seem to like Ruby on Rails, but that’s not my problem. 😉

I’ll see if I can show them the merits of .Net and bring them over to the dark side.

Switch to our mobile site