Macro - (.*) - What is this?

All resolved question will be found here. It is recommended that you browse / search through this section first and see if your question has been answered before

Moderators: Moderators, Documentation Writers

Message
Author
tyason01
Noob
Noob
Posts: 3
Joined: 17 Feb 2016, 14:18
Noob?: Yes

Macro - (.*) - What is this?

#1 Post by tyason01 »

What does it do? How to use?

otaku
Human
Human
Posts: 28
Joined: 29 Nov 2013, 21:50
Noob?: No
Location: Brazil
Contact:

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

#2 Post 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.
I'm watching my TV or is it watching me?

Locked