title: Spring EL - split a property value and get the second entry
body: <p>I have the following property in my properties</p>
  
  <pre><code>test.property=context:test:sample
  </code></pre>
  
  <p>I'm trying to retrieve the value "<code>test</code>" by doing a split with <code>colon(:)</code> and getting the second part.</p>
  
  <p>I'm doing this:</p>
  
  <pre><code>@Value("#{'${test.property}'.split(':')[1]}")
  private String test;
  </code></pre>
  
  <p>However, it seems to come up as <code>null</code>. Is there something wrong in what I'm doing? I have other properties being injected in the same file and they seem to be read without a problem. Even if I replace the expression above with just a <code>@Value("${test.property}")</code>, it seems to read the string <code>context:test:sample</code></p>