Hi
I have a problem with RegExp for extracting host names from switch alias.
Details:
switchalias : abcdtsm01_aixfcs3
Hostname : abcd-tsm01
Expression used: ([a-zA-Z0-9]*)_([^_]+).* \1 it will capture " abcdtsm01" which is wrong
How can i add "-" in the middle to show as abcd-tsm01.