Find a 10 number of consecutive digits in a string Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
djuga
Posts: 88
Joined: 28 Jul 2019, 08:16

Find a 10 number of consecutive digits in a string

21 Apr 2021, 17:42

Anybody know how to do that ?

Get selected text from this example string

  • lkfjasdow4123rqovcc5nxc,mawepr5566;otyrtuyrobvxm,asdajs383129hsdasds
    fdsajmklgjfnkdrweaarjiklr1020576[vcnmx,zXNCMBf847543983esalakmdjasdd
    fsdkjl2hjiqweue3ougfjnbvxcjansiq4r9oriqpof1287409564osipoasidaskqw1egl
    fdslkjfqoerigdflkjeri55990007asnm,dewiqlujroper[tkn1zxm,na2nlsae33sdas1
My questions are baffling! :crazy:
User avatar
Xtra
Posts: 2750
Joined: 02 Oct 2015, 12:15

Re: Find a 10 number of consecutive digits in a string  Topic is solved

21 Apr 2021, 17:50

Code: Select all

str =
(
lkfjasdow4123rqovcc5nxc,mawepr5566;otyrtuyrobvxm,asdajs383129hsdasds
fdsajmklgjfnkdrweaarjiklr1020576[vcnmx,zXNCMBf847543983esalakmdjasdd
fsdkjl2hjiqweue3ougfjnbvxcjansiq4r9oriqpof1287409564osipoasidaskqw1egl
fdslkjfqoerigdflkjeri55990007asnm,dewiqlujroper[tkn1zxm,na2nlsae33sdas1
)

RegExMatch(str, "\d{10}", m)
MsgBox % m
djuga
Posts: 88
Joined: 28 Jul 2019, 08:16

Re: Find a 10 number of consecutive digits in a string

21 Apr 2021, 18:02

Xtra wrote:
21 Apr 2021, 17:50

Code: Select all

str =
(
lkfjasdow4123rqovcc5nxc,mawepr5566;otyrtuyrobvxm,asdajs383129hsdasds
fdsajmklgjfnkdrweaarjiklr1020576[vcnmx,zXNCMBf847543983esalakmdjasdd
fsdkjl2hjiqweue3ougfjnbvxcjansiq4r9oriqpof1287409564osipoasidaskqw1egl
fdslkjfqoerigdflkjeri55990007asnm,dewiqlujroper[tkn1zxm,na2nlsae33sdas1
)

RegExMatch(str, "\d{10}", m)
MsgBox % m
Thx :D
My questions are baffling! :crazy:

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: No registered users and 269 guests