Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about hostname

Read more about hostname

python (12.9k questions)

javascript (9.2k questions)

reactjs (4.7k questions)

java (4.2k questions)

java (4.2k questions)

c# (3.5k questions)

c# (3.5k questions)

html (3.3k questions)

Questions - hostname

Regex to capture the IP or hostname from a list having a mix of IP and hostname

For my situation, I need to extract the IP address or the hostname from the list. For example, suppose this is the list d-bns-teaut-12.corporate.net:9100, 10.212.142.61:9100, d-bns-teaut-23.corporate...
test-img

Ashish Kurian

regex

hostname

grafana-variable

Votes: 0

Answers: 1

Latest Answer

You can use ([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}|[^.]+) The pattern is a capturing group ((...)) that matches either [0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3} - one, two or three dig...
test-img

Wiktor Stribiżew

Trying to get Hostname from A group

I am trying to get the inventory_hostname from a hosts group I created. What I am really trying to achieve is copying a file with a new name to a remote server, while its new name will be other remote...
test-img

İlker Demirci

ansible

hostname

Votes: 0

Answers: 0

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved