tags:

views:

187

answers:

1

How do I match something thats "A known part (unknown word) (the rest of the string)" in a perl-style regex (PCRE)?

+5  A: 

Something like this should do:

/^KNOWN PART (\w+) (.*)$/
musicfreak