hello,
I need get third number from a lot of number
There are 10 random numbers,Every time is different
^5613265165
^2153261952
I found information about perl Function substr can help me get number
but how to use substr in macros.txt?
I tried like this:
automacro pp {
exclusive 1
run-once 1
map geffen
console /: \^(.*)/
call {
log $.lastMatch1
$aa = $.lastMatch1
$bb = @eval(substr($aa),3,1)
release all
stop
}
}
but not work,please help me,thanks before
[Solved]How to use substr in macros.txt?
Moderator: Moderators
-
- Noob
- Posts: 5
- Joined: 20 Jun 2017, 14:26
- Noob?: Yes
-
- The Way Of Human
- Posts: 150
- Joined: 24 Mar 2012, 04:13
- Noob?: Yes
Re: How to use substr in macros.txt?
Just plain
would be enough.
Code: Select all
/\d/
Just like old times.