Regex for ExtractCustomFieldValue

I’m testing this out but am weak on the Regex front. The value I’m going to be
extracting from emails is on a line that looks like
CUSTOMER ENVIRONMENT customer_name

The customer_name will never have spaces

Would the Regex be
CUSTOMER ENVIRONMENT\s+(\w)

If not, could someone help me out?

Mathew
Keep up with me and what I’m up to: http://theillien.blogspot.com

I think I’d put a + after the \w to match 1 or more “word” characters, like so:
/CUSTOMER ENVIRONMENT\s+(\w+)/

At 09:44 PM 5/15/2007, Mathew Snyder wrote:

I’m testing this out but am weak on the Regex front. The value I’m going
to be
extracting from emails is on a line that looks like
CUSTOMER ENVIRONMENT customer_name

The customer_name will never have spaces

Would the Regex be
CUSTOMER ENVIRONMENT\s+(\w)

If not, could someone help me out?

Mathew

Keep up with me and what I’m up to: http://theillien.blogspot.com


The rt-users Archives

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

Gene LeDuc, GSEC
Security Analyst
San Diego State University