Let me retry this...
i tried what you suggested, but it wasn't working right.
it wasn't matching correctly, because some of the phrases i need to match are 2 words...
what i need to do is something VERY similar to the 4th example here:
http://us2.php.net/manual/en/function.preg-match.php
to quote...
Example #4 Using named subpattern
<?php
$str = 'foobar: 2008';
preg_match('/(?<name>\w+): (?<digit>\d+)/', $str, $matches);
print_r($matches);
?>
The above example will output:
Array
(
[0] => foobar: 2008
[name] => foobar
[1] => foobar
[digit] => 2008
[2] => 2008
)
when i say similar, i mean almost identical, except not taking the defined var like that, but using the input from my <textarea> form.
which essentialy comes like this...
foo: 34 35.53% far foofoo: 45 89.56% closer
barfoo: 34 35.53% far barfoofoo: 45 89.56% closer
foobar: 34 35.53% far foobarfoo: 45 89.56% closer
barfoobar: 34 35.53% far foofoobar: 45 89.56% closer
and on, and on.
though there are approx 50 total entries like this, spaced like this, and will most likly be paste like this into the textarea box.
i almost want to match each entry by exact word, which i can, but thats too much code...
i had them entering each "skill" in its own textbox, but they complained, and wanted to be able to do it by just pasting the whole data, instead of typing in each set....
i've seen exactly what i want to do, in javascript, and someone has made one in php, but the person who created it is no longer contactable...
i am so unfamiliar with preg_match, as i haven't had to use it ever, untill now... i've just recently gotten more time to do some research, but any input would be helpful