I found a this (now modified) code in the forum
Code:
void main() {
matcher m;
string raidlog = visit_url("shop.php?whichshop=generalstore");
m = create_matcher("was a ([a-z]*)", raidlog);
if (find(m)) {
print ("test");
print(group(m,1));
}
which produces this:
> call scripts\00TEST.ash
test
hero
Code:
void main() {
matcher m;
string raidlog = visit_url("shop.php?whichshop=generalstore");
m = create_matcher("was a (\\w*)", raidlog);
if (find(m)) {
print ("test");
print(group(m,1));
}
produces the same thing. Is there a regex command to pull ALL the following text? I tried various things like this:
(\\w*) (\\w*), and [a-z]* [a-z]* [a-z]*
but I got the same output each time.
I would like it to say this "hero of the Cola Wars. Now I wage war"