Just off the top of my head, this should do it:
RewriteRule ^search\/(.+) http://www.yourdomain.com/search [R=302]
Explanation of the syntax above:
^ indicates the start of the match
\ is the escape character, so \/ means escape the forward slash (probably unnecessary, but does no harm)
() is a capture group
. means any character
+ means one or more of
So the whole regex means:
starting at the current position in the folder hierarchy, match
search/
followed by one or more characters.
N.B. Importantly, it is the R flag which indicates the type of redirect, so you need R=302, (not L=302, which doesn't exist)