WebSphere HATS - help with regular expression

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere HATS > February 2006 > help with regular expression





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author help with regular expression
WG

2005-12-13, 5:45 pm

Hello,

can anyone help me with the syntax of regular expression string?

Suppose all the strings "PF1" need to be replaced, but not the "PF12"
string.
What do I put down as the pattern?

I tried the following as the pattern to be replaced:
PF1[^2]

But that only crashes...


Thanks!


Kenny Smith

2006-02-20, 5:45 pm

WG wrote:
> Hello,
>
> can anyone help me with the syntax of regular expression string?
>
> Suppose all the strings "PF1" need to be replaced, but not the "PF12"
> string.
> What do I put down as the pattern?
>
> I tried the following as the pattern to be replaced:
> PF1[^2]
>
> But that only crashes...
>
>
> Thanks!
>
>

Try ^PF\d\s?
where \d is any digit
and \s is any whitespace character. That way it will ignore any function
keys greater than PF9.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com