Regex Matching based on a digit

Hi,

Can someone give me a tip how to match a series of digits in the middle of the text based on a starting number using regex?
I would like to match numbers that have seven digits \d{7} and that these numbers would start with number 4. ^ seems to track first string from line so i have not gotten it to work…

Cheers!

HI @Mikko_S,

Try this pattern —> 4\d{6}

1 Like

@Mikko_S

Did we try

4\d{7}

Try this [4]\d{6}

I´m quite sure i tried this already. Typed it again and worked! Thanks a lot! :slight_smile:

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