Paul Stickney
1/5/2008 2:58:00 AM
break it down... these aren't all *exactly* to your specs--it's less
specific, just a start
(I would consider not even using a regular expression here...)
1) (add|modify)
2) \S+ (any non-whitespace, not exact)
3) [fs]
4) [ipe]
5) [hl] [.0-9]+
Combined, something like:
(add|modify)\s+\S+\s+[fs]\s+[ipe]\s+[hl]\s+[.0-9]+
Of course, this ignores < and >.
But, oww, my head...
"Some people, when confronted with a problem, think "I know, I'll use
regular expressions." Now they have two problems." -- Jamie Zawinski