i need some help! please help me :(

All about the macro plugin can be found in this forum. This forum is intended for the macro plugin only.

Moderator: Moderators

johnjane
Noob
Noob
Posts: 4
Joined: 08 May 2009, 07:52
Noob?: No

i need some help! please help me :(

#1 Post by johnjane »

i don't know how to solve this problem..

Image



Image
im trying to get the numbers in red colour..
can anyone help me?
Last edited by johnjane on 06 Jan 2013, 23:25, edited 1 time in total.
Spherical
Human
Human
Posts: 29
Joined: 03 Jan 2013, 00:05
Noob?: No

Re: i need some help! please help me :(

#2 Post by Spherical »

regex isn't my strong point but don't you need to escape [ and ]?
johnjane
Noob
Noob
Posts: 4
Joined: 08 May 2009, 07:52
Noob?: No

Re: i need some help! please help me :(

#3 Post by johnjane »

Spherical wrote:regex isn't my strong point but don't you need to escape [ and ]?
uh' what do you mean by "escape [ and ]? remove the []?
Spherical
Human
Human
Posts: 29
Joined: 03 Jan 2013, 00:05
Noob?: No

Re: i need some help! please help me :(

#4 Post by Spherical »

Because we want to do more than simply search for literal pieces of text, we need to reserve certain characters for special use. In the regex flavors discussed in this tutorial, there are 11 characters with special meanings: the opening square bracket [, the backslash \, the caret ^, the dollar sign $, the period or dot ., the vertical bar or pipe symbol |, the question mark ?, the asterisk or star *, the plus sign +, the opening round bracket ( and the closing round bracket ). These special characters are often called "metacharacters".

If you want to use any of these characters as a literal in a regex, you need to escape them with a backslash. If you want to match 1+1=2, the correct regex is 1\+1=2. Otherwise, the plus sign will have a special meaning.
This should help you :).
johnjane
Noob
Noob
Posts: 4
Joined: 08 May 2009, 07:52
Noob?: No

Re: i need some help! please help me :(

#5 Post by johnjane »

Spherical wrote:
Because we want to do more than simply search for literal pieces of text, we need to reserve certain characters for special use. In the regex flavors discussed in this tutorial, there are 11 characters with special meanings: the opening square bracket [, the backslash \, the caret ^, the dollar sign $, the period or dot ., the vertical bar or pipe symbol |, the question mark ?, the asterisk or star *, the plus sign +, the opening round bracket ( and the closing round bracket ). These special characters are often called "metacharacters".

If you want to use any of these characters as a literal in a regex, you need to escape them with a backslash. If you want to match 1+1=2, the correct regex is 1\+1=2. Otherwise, the plus sign will have a special meaning.
This should help you :).
console /Gold Room: (\d+) [\color]/i
i didnt recieve any error after that. but.. the function aint working anymore or the macro it wont trigger. >.<
Spherical
Human
Human
Posts: 29
Joined: 03 Jan 2013, 00:05
Noob?: No

Re: i need some help! please help me :(

#6 Post by Spherical »

Read what I posted again please, and carefully this time, I'm not going to spoonfeed what you need to do :).
johnjane
Noob
Noob
Posts: 4
Joined: 08 May 2009, 07:52
Noob?: No

Re: i need some help! please help me :(

#7 Post by johnjane »

Spherical wrote:Read what I posted again please, and carefully this time, I'm not going to spoonfeed what you need to do :).
ok problem solved. but i made it the other way aroudn hehe. thanks man!