RegExReplace simple question

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
euras
Posts: 429
Joined: 05 Nov 2015, 12:56

RegExReplace simple question

25 Oct 2016, 05:41

Hi,

Simple question but I forgot how to do it :))
how to copy value without the last 3 symbols?
let's say it should be "1.532.245" in the last result :)

Code: Select all

one := "1.532.245,33"
two := RegExReplace(one, ???)
msgbox, %two%
return
ahcahc
Posts: 110
Joined: 25 Jul 2014, 23:55

Re: RegExReplace simple question

25 Oct 2016, 05:47

The needle to remove last 3 character ...$ using regexreplace.
drawback
Posts: 34
Joined: 11 Aug 2016, 11:31

Re: RegExReplace simple question

25 Oct 2016, 07:28

or {<x>}$ where <x> is an integer -> in your case {3}$
or if you want to ignore the comma and anything behind it e.g.:

Code: Select all

one := "1.532.245,33"
RegExMatch(one, "^[0-9.]+", two)
msgbox, % two

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: No registered users and 217 guests