/:ID\s(\d*).*:P_ID\s(\d*)/
You can then refer to the matches using $1 and $2 respectively.
Hope this helps.
-- Foxcub
In reply to Re: pattern matching
by Tanalis
in thread pattern matching
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |