Due to recent updates, all users are required to create an Altair One account to login to the RapidMiner community. Click the Register button to create your account using the same email that you have previously used to login to the RapidMiner community. This will ensure that any previously created content will be synced to your Altair One account. Once you login, you will be asked to provide a username that identifies you to other Community users. Email us at Community with questions.

How do I write this RegExpr?

Fred12Fred12 Member Posts: 344 Unicorn
edited November 2018 in Help

hi,

I want to replace a capturing group by a regexpr... see screenshot:

regexp.PNG

 

I only want the number "1111" after it... however the name comes in differen Variations: Einzelliste_1111 with space after the number, and another time with "_" underscore after the number, and another time with a space and some Character or other numbers after it! But I only want the number after "Einzelliste_" 

 

so I thought the capturing group after "Einzelliste_(.*) should be sufficient because it should give me exactly that number with the $1... but it doesnt... why??? 

Tagged:

Answers

  • MartinLiebigMartinLiebig Administrator, Moderator, Employee, RapidMiner Certified Analyst, RapidMiner Certified Expert, University Professor Posts: 3,529 RM Data Scientist

    Fred,

     

    don't you want to use:

    Einzelliste_(\d+).* 

    this should capture only the digits.

     

    ~Martin

    - Sr. Director Data Solutions, Altair RapidMiner -
    Dortmund, Germany
Sign In or Register to comment.