Page 1 of 1

Macro - (.*) - What is this?

Posted: 22 Feb 2016, 14:58
by tyason01
What does it do? How to use?

Re: Macro - (.*) - What is this?

Posted: 25 Feb 2016, 06:38
by otaku
You need to post examples. You mean something like this on a macro?

Code: Select all

automacro example {
	console /(.*)/
	call {
		# Whatever
	}
}
If that's what you meant, then it is a Perl regular expression.

Each of those symbols have their meanings:

. -> Matches any character (except the new line character)
* -> Means that the previous `symbol` appears 0 or more times
( and ) -> It specifies as a capture group whatever is enclosed in between

So (.*) will match and then capture anything that appears on the console in the previous code snippet.