I'd like to remove the 'year' out of a field value. For example, I want to remove '2015' out of the field value '2015 test' so that I end up with just 'test'
Can someone tell me what I'm doing wrong here?
I'd like to remove the 'year' out of a field value. For example, I want to remove '2015' out of the field value '2015 test' so that I end up with just 'test'
Can someone tell me what I'm doing wrong here?
Is there always 4 digit number followed by text? if so, you can use something like \d\s*(.*)
The solution by Tommy will remove all numeric values, so may be more aggressive than you need/want.
I tried using this solution but it didn't work:
Actually, that works as written. Your regular expression has a space before the "\d", so it matches the end of the " 99999". You have the space, then first "9" is covered by \d, then zero or more spaces (zero in this case), then some other characters.
I tried it without the space, and this is what I got:
Your slash is backwards in the regular expression. The function does not support regular expression for the value to remove.
But as Tommy and Bert indicate, you can use regular expression directly to get the numbers out.