Honored Contributor.
Honored Contributor.
178 views

Reguler Expression with <>

Jump to solution

HI Experts,

Kindly I need to create matching expression to match for below error

<ErrorCode>61</ErrorCode>

 

is there any idea ?

0 Likes
1 Solution

Accepted Solutions
Highlighted
Outstanding Contributor.
Outstanding Contributor.

Re: Reguler Expression with <>

Jump to solution

Have you tried:

\<ErrorCode\>61\</ErrorCode\>

?

Or:

\<ErrorCode\><#>\</ErrorCode\>

to match any number.

View solution in original post

8 Replies
Highlighted
Honored Contributor.
Honored Contributor.

Re: Reguler Expression with <>

Jump to solution

HI MicroFocus Experts,

Is there any idea ?

0 Likes
Highlighted
Honored Contributor.. Honored Contributor..
Honored Contributor..

Re: Reguler Expression with <>

Jump to solution

This should match:

/(<ErrorCode>61</ErrorCode>)/

Highlighted
Honored Contributor.
Honored Contributor.

Re: Reguler Expression with <>

Jump to solution

HI Dasomm,

this expression i think for Sitescope not OMi.

 

0 Likes
Highlighted
Outstanding Contributor.
Outstanding Contributor.

Re: Reguler Expression with <>

Jump to solution

Have you tried:

\<ErrorCode\>61\</ErrorCode\>

?

Or:

\<ErrorCode\><#>\</ErrorCode\>

to match any number.

View solution in original post

Highlighted
Honored Contributor.. Honored Contributor..
Honored Contributor..

Re: Reguler Expression with <>

Jump to solution

Hi HPMST,

Yes, this is from SiS, could be some syntax differences in OMI perhaps.
What kind of policy are you working on?

 

0 Likes
Highlighted
Honored Contributor.
Honored Contributor.

Re: Reguler Expression with <>

Jump to solution

HI, I am using OMi log file Policy 

Tags (1)
0 Likes
Highlighted
Outstanding Contributor.
Outstanding Contributor.

Re: Reguler Expression with <>

Jump to solution

Have you tried my suggestion below?

0 Likes
Highlighted
Honored Contributor.
Honored Contributor.

Re: Reguler Expression with <>

Jump to solution

HI,

 

Thanks alot it is working fine

 

The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.