Grooper 21.00.0082 is available as of 12-12-2023! Check the  Downloads Discussion  for the release notes and to get the latest version.
Grooper 23.00.0044 is available as of 06-20-2024! Check the Downloads Discussion for the release notes and to get the latest version.
Grooper 23.1.0024 is available as of 09-03-2024! Check the  Downloads Discussion  for the release notes and to get the latest version.

Trim the data until the first space arrives from Datafield

mounikapotlamounikapotla Posts: 31
edited July 2021 in The Astronauts (Q&A)
Hi Everyone,
How to trim the data until the first space comes using trimstart  in data field and I need to remove some static content from data field value.
Please help.

Thanks,
Mounika Potla.

Answers

  • jlunsfordjlunsford Posts: 139 mod
    it may be easier to change your regex pattern to only pull the data you want using the output format
    An example would be if you want to extract 000012345 without the leading zeros your pattern could be
    (0{4})(\d{5}) and your output format would be {2}
  • mounikapotlamounikapotla Posts: 31
    Hi @jlunsford,
    I am not using any regular expressions. I am taking the filename of scanned image and I want to remove extension of filename and I have to trim the data until the first space comes.
  • jlunsfordjlunsford Posts: 139 mod
  • mounikapotlamounikapotla Posts: 31
    Hi @jlunsford,
    I have seen the given link and I checked all options what they mentioned but still I didn't get the solution.
    Example: 34_n4 test 1
    Result: test 1
    Is there any other options to try. Please help
Sign In or Register to comment.