Select year using regular expression

Hi, I just want the year (2016) but 2508 is also highlighted.

SINGAPORE AIRLINES LIMITED Electronic Ticket Receipt: 618 25088985899 SANJAYAEKA BUDI MR MAHARANWFINI MRS Bocking Rctorenoe: T7MBJO Date of Isste: 18 Dec 2016 Frequent Flyer Number Place of Issue: YAIR Tourllner Yogyskartx Indenesla Flight Detalls Tickel Number: 618 25088985899 So 963 Operated by Singapere Aidlines Economy Class (c) From Jakarta (CGK-Sockamo Inti) Terminal: 2F Depart Sat 29 Dec 2016 18:00 Status: Confirmed To:

Is it possible to just use one expression that will extract the year for both text?

Flight Check-in: at Departure 349 05Nov2022 05Nov2022 07:10 10:10

@helpplease

Try like this

\s\d{4}\s

cheers

1 Like

What about this? Is it possible to just use one expression that will extract the year for both text?

Flight Check-in: at Departure 349 05Nov2022 05Nov2022 07:10 10:10

@helpplease

Try this one

(?<[A-Za-z]{3} ?)\d{4}

cheers

1 Like

Got it. Thank you so much!!

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.