Unknown error 3000 when updating to iOS 7 GM

I ran into the same issue that apparently thousands of others have faced when trying to one-up iOS, and managed to fix it by ensuring that: I had iTunes 11 Beta 2 installed (log into the iOS Dev Center and get it here), had all my OSX updates installed, disconnected my external sound card and other USB devices and restarted OSX.

Use regular expressions in TextMate to match text between a prefix and a suffix

Apparently TextMate uses something called “Oniguruma” for its regular expressions syntax. An overview of the syntax can be found here: http://manual.macromates.com/en/regular_expressions.

I needed to match literals of unknown length today, more specifically the following expression:

<li><a href = "http://url.com">

where url.com could be any valid URL</span>. In Onigurama syntax, you can match all those expressions using the following regular expression:

<li><a href = ".*?">

The quantifiers and anchors will cover a broad range of regexp needs, an extract of the syntax:

4. Quantifier
 
  greedy
 
    ?       1 or 0 times
    *       0 or more times
    +       1 or more times
    {n,m}   at least n but not more than m times
    {n,}    at least n times
    {,n}    at least 0 but not more than n times ({0,n})
    {n}     n times
 
  reluctant
 
    ??      1 or 0 times
    *?      0 or more times
    +?      1 or more times
    {n,m}?  at least n but not more than m times  
    {n,}?   at least n times
    {,n}?   at least 0 but not more than n times (== {0,n}?)
 
  possessive (greedy and does not backtrack after repeated)
 
    ?+      1 or 0 times
    *+      0 or more times
    ++      1 or more times
 
    ({n,m}+, {n,}+, {n}+ are possessive op. in ONIG_SYNTAX_JAVA only)
 
    ex. /a*+/ === /(?>a*)/
 
 
5. Anchors
 
  ^       beginning of the line
  $       end of the line
  \b      word boundary
  \B      not word boundary
  \A      beginning of string
  \Z      end of string, or before newline at the end
  \z      end of string
  \G      matching start position