Creating RegEx For Replace

I have a RegEx question. I have a Composer field in the format of Name (1234 - 5678). What I need is a ReegEx, or something similar, to edit the field to just Name, (deleting the (...).

I use regex in .NET but for some reason I cannot develop this string.

Jerry B

You could try:
$regexp('Name (1234 - 5678)','\s*\(.*',)

Thanks ohrenkino.

That is a lot simpler than the command I was coming up with.

Jerry B

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.