Skip to main content
added 4 characters in body
Source Link
Chris Davies
  • 128k
  • 16
  • 178
  • 323

I have a list that contains the names of hosts available in our company.

For example :

  • gswast03
  • gkjbossp1
  • frdwop04

The last characters t, p, q before the number represent the environment of the host. All strings end with a number.

  • tt for test
  • pp for prod
  • qq for qas

I need a reqular expression to obtain the character that is leading to number at the and of the host name (I need a solution for a single string not all list in a file)

For example :

gswast03

In this string, I just want to extract tt character.

Thank you in advance.

I have a list that contains the names of hosts available in our company.

For example :

  • gswast03
  • gkjbossp1
  • frdwop04

The last characters t, p, q before the number represent the environment of the host. All strings end with a number.

  • t for test
  • p for prod
  • q for qas

I need a reqular expression to obtain the character that is leading to number at the and of the host name (I need a solution for a single string not all list in a file)

For example :

gswast03

In this string, I just want to extract t character.

Thank you in advance.

I have a list that contains the names of hosts available in our company.

For example :

  • gswast03
  • gkjbossp1
  • frdwop04

The last characters t, p, q before the number represent the environment of the host. All strings end with a number.

  • t for test
  • p for prod
  • q for qas

I need a reqular expression to obtain the character that is leading to number at the and of the host name (I need a solution for a single string not all list in a file)

For example :

gswast03

In this string, I just want to extract t character.

Thank you in advance.

Highlight the character to be extracted
Source Link
AdminBee
  • 23.6k
  • 25
  • 55
  • 77

I have a list that contains the names of hosts available in our company.

For example :

  • gswast03
  • gkjbossp1
  • frdwop04

The last characters t, p, q before the number represent the environment of the host. All strings end with a number.

  • t for test
  • p for prod
  • q for qas

I need a reqular expression to obtain the character that is leading to number at the and of the host name (I need a solution for a single string not all list in a file)

For example :

gswas**t**03   : In this string, I just want to extract **t** character.

gswast03

In this string, I just want to extract t character.

Thank you in advance.

I have a list that contains the names of hosts available in our company.

For example :

  • gswast03
  • gkjbossp1
  • frdwop04

The last characters t, p, q before the number represent the environment of the host. All strings end with a number.

  • t for test
  • p for prod
  • q for qas

I need a reqular expression to obtain the character that is leading to number at the and of the host name (I need a solution for a single string not all list in a file)

For example :

gswas**t**03   : In this string, I just want to extract **t** character.

Thank you in advance.

I have a list that contains the names of hosts available in our company.

For example :

  • gswast03
  • gkjbossp1
  • frdwop04

The last characters t, p, q before the number represent the environment of the host. All strings end with a number.

  • t for test
  • p for prod
  • q for qas

I need a reqular expression to obtain the character that is leading to number at the and of the host name (I need a solution for a single string not all list in a file)

For example :


gswast03

In this string, I just want to extract t character.

Thank you in advance.

Minor formatting
Source Link
Chris Davies
  • 128k
  • 16
  • 178
  • 323

I have a list that contains the names of hosts available in our company.

For example :

gswast03 gkjbossp1 frdwop04

  • gswast03
  • gkjbossp1
  • frdwop04

The last characters tt, pp, qq before the number represent the environment of the host. All strings end with a number. t for test p for prod q for qas

  • t for test
  • p for prod
  • q for qas

I need a reqular expression to obtain the character that is leading to number at the and of the host name    (I need a solution for a single string not all list in a file)

For example :

gswast03 : In this string, I just want to extract t character.

gswas**t**03   : In this string, I just want to extract **t** character.

Thank you in advance.

I have a list that contains the names of hosts available in our company.

For example :

gswast03 gkjbossp1 frdwop04

The last characters t, p, q before the number represent the environment of the host. All strings end with a number. t for test p for prod q for qas

I need a reqular expression to obtain the character that is leading to number at the and of the host name  (I need a solution for a single string not all list in a file)

For example :

gswast03 : In this string, I just want to extract t character.

Thank you in advance.

I have a list that contains the names of hosts available in our company.

For example :

  • gswast03
  • gkjbossp1
  • frdwop04

The last characters t, p, q before the number represent the environment of the host. All strings end with a number.

  • t for test
  • p for prod
  • q for qas

I need a reqular expression to obtain the character that is leading to number at the and of the host name  (I need a solution for a single string not all list in a file)

For example :

gswas**t**03   : In this string, I just want to extract **t** character.

Thank you in advance.

Source Link
Loading