You have to use RegEx or Regular Expression (expressions régulières in
French)
Not easy at first, but quite powerful when you become familiar

Tutorial in English
http://www.regular-expressions.info/

in French
http://www.expreg.com/
http://www.siteduzero.com/tutoriel-3-14608-les-expressions-regulieres-partie-1-2.html

a site which allow you to test your regex :
http://lumadis.be/regex/index.php

Don't forget : In Javascript you must double the backslash -> \s => \
\s or \w => \\w

Good luck


On Apr 9, 1:06 pm, Pawel Kaliszewski <[email protected]> wrote:
> I have clear text, without html code. (in text area) and I want to
> take from this text numbers for every pertes. but, from attaquant is
> one var and for defenseur is second var, (every next line is own var
> too). But I dont know how to take this numbers,(in every next text
> like this, numbers is different).
> Help please.
>
> This is text which I working on.
> Round : 1
> Attaquant
> Serenity SR6 Total : 1 | Pertes : 0 (0%)
>
> Défenseur
> Tour. à laser lourd Total : 23 | Pertes : 0 (0%)
> BNLMNA Total : 9 | Pertes : 0 (0%)
>
> Round : 2
> Attaquant
> Serenity SR6 Total : 1 | Pertes : 0 (0%)
>
> Défenseur
> Tour. à laser lourd Total : 23 | Pertes : 23 (1%)
> BNLMNA Total : 9 | Pertes : 2 (0.22%)
>
> Round : 3
> Attaquant
> Serenity SR6 Total : 1 | Pertes : 0 (0%)
>
> Défenseur
> BNLMNA Total : 7 | Pertes : 7 (1%)

-- 
You received this message because you are subscribed to the Google Groups 
"greasemonkey-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/greasemonkey-users?hl=en.

Reply via email to