Regexmatch

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Ernestas
Posts: 33
Joined: 16 Apr 2018, 02:07

Regexmatch

05 Jul 2018, 00:21

Hello Guys!

I am struggling with regex again.. If you could help me I would be very grateful.
The string is always first two letters than space and 5 digits. so for exapmle it looks like this XY 12345
What I need is to recognise that it starts with two letters (any letters could be) and than delete spaces.
THANK you guys!!
coffee
Posts: 133
Joined: 01 Apr 2017, 07:55

Re: Regexmatch

05 Jul 2018, 00:56

Code: Select all

RegexReplace(tmp, "i)^([a-zA-Z]{2})\s+(\d{5})$", "$1$2")
Probably.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Google [Bot], Kodakku and 366 guests