Jump to content

Gets line with 1 and stops when it sees the last 2


homer.favenir

Recommended Posts

hi to all,

i have a simple question here.

the string is this...

0002 B A*T&*T YELLOW PAGES                                                                                                                                                        1
1[YELLOW PAGES CUSTOMER SERVICE]                                                                                                                                           -      2
2100 E BIG BEAVER                                                              TROY                           MI                                                    800 479-2977  2
1[YELLOW PAGES SALES OFFICE]                                                                                                                                        800 249-4449  2
1[DIRECTORY ORDER CENTER]                                                                                                                                           800 346-4377  2
1[YELLOW*PAGES.*COM]                                                                                                                                                       -      2
2[ADVERTISING & SALES INFORMATION]                                                                                                                                         -      2
2[VISIT US ONLINE *WWW.YELLOW*PAGES.*COM]                                                                                                                                  -      2
2                                                                                                                                                                   877 647-6278  2
0002 B A*T*V WORLD L*L*C                                                                                                                                                          1
1652 COLUMBIA-LISBON RD                                                                                                                                            330 482-4623  2
0002 B AADAMS APPLIANCE SERV INC                                                                                                                                                  1
1747 S RACCOON RD                                                             AUTSTINTOWN TWP                                                                      330 793-2438  2

condition is ...... when it sees a digit 1 it captures the line until it reaches the last digit 2, and it loops again...

(you can see the digit number in the last column, 1 and 2).

i can capture the line but how do i capture a multiple line?

 

thanks

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.