Im trying to strip the whitespace from the front and back of an {,

This RegEx is brain boggling, here's wjat I have:

HTML Code:

Here's what i understand kind of

\s for any space, tab, etc..
"{" for the literal character
/ and / to start the regex area,
[] for little boxes of there own (not needed?)

(ps: no need for a long explanation I dont know If Ill understand it well anywayS)