I have been trying to create a match pattern for only the third octet of an IP address. Where I get in trouble is that this third octet can be 1, 2, or 3 digits deep.
ie. 100.200.120.2 or 100.200.1.42

I need to match .120. on the first example and .1. on the second example.

All of my attempts get stuck on the second octet since the format is the same essentially as the third octet.

I am using RegExRx, but I think its more advanced than I

In the free samples that you can download through RegExRX, look at βFind IPv4 Address (subroutine)β. You can use that and find your answer within SubExpressionString( 4 ). Here is the pattern:

I just realized that the sample left off the trailing β\bβ as shown above. If you re-download, youβll have the most updated versions of all the sample, including that one.

I have been trying to create a match pattern for only the third octet of an IP address. Where I get in trouble is that this third octet can be 1, 2, or 3 digits deep.
ie. 100.200.120.2 or 100.200.1.42

I need to match .120. on the first example and .1. on the second example.

All of my attempts get stuck on the second octet since the format is the same essentially as the third octet.

I am using RegExRx, but I think its more advanced than I

Thank again everyone![/quote]
You could also use NthField

Kem I just downloaded your Samples for RegExRx and they are perfect thank you. For others reading this as a reference here is the link to the RegExRx sample files.