I want to move the B/L_XXX line to the front with the letter line Is there a possible expression?

I want to move the B/L_XXX line to the front with the letter line
After that, I want to remove the phrase of the original location
Is there a possible expression?

The rules are repeated
Looking for expressions that apply until the next B/LXXX phrase.

The reference screenshot is shown below

I’m attaching a text file.


PDF.TXT (21.0 KB)

Hi @sssim4567 ,
You can use regex
regards,
LNV

I’ve never used REGEX before, so could you tell me how to use it please…
I would appreciate it if you could let me know the details.

hi @sssim4567

can you share your input through text format

so that we may help

PDF.TXT (21.0 KB)

here it is

@sssim4567

regexdata.zip (8.8 KB)

In the zip file i have shared the final output txt file

Hope this helps

Cheers ,Happy Automation.

I appreciate your help, but I don’t just want to extract that part…
That part is to move in front of the line with the letter.