Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in RPA by (5.3k points)

I have this string and I want to know how extract the "10-K_20190304_29_1_20190515" part.

"nCABALLERO MARIA\r\n10.1-K\r\n10-K_20190304_29_1_20190515\r\n6204 DEPORTES SANTIAGO - PEÑALOLÉN"

I've tried this, .+(?<=_).+, but it brings me more characters that I need.

How do I solve this problem?

1 Answer

0 votes
by (9.5k points)

Here, we like to start with a simple left and right boundary and collect our desire data and save it in a capturing group ($1). Let's start with:

[0-9]{2}-.+[0-9]{8}

and lets add our capturing group:

([0-9]{2}-.+[0-9]{8})

 

Related questions

0 votes
1 answer
asked Jul 22, 2019 in RPA by noah kapoor (5.3k points)
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Browse Categories

...