Jump to content
Sign in to follow this  
Jalz

Trim spaces only in brackets

Recommended Posts

Hello All,

Ive got the data in my records just about cleansed. A have one field in particular with lets say the following details.

ENG_1R (AEB )

MAT_3D (AJK)

LAT_2Y (AJK AEB )

IT_2I (UAE )

I would like to remove the space before the bracket ends so record 1,3 and 4 would have the endings (AEB),(AJK AEB) and (UAE).

Ive created a looping script with the TrimALL command but that removes all the spaces. Anyone have an idea of just removing the spaces in the brackets. Thanking all of you guys in advance.

Share this post


Link to post
Share on other sites

Why dont you just keep it to something simple and use:

Substitute ( field; " )"; ")" )

Share this post


Link to post
Share on other sites

Thanks Mr Vodka,

I'll try that...now why didn't I think of that!. Ive already got a substitute in that field doing some cleansing - and I thought, I can always add another "[]" with your code!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Who Viewed the Topic

    1 member has viewed this topic:
    MikeKD 
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.