Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Replace ¶
Replace uses the golang regex lib to replace all occurences of the pattern in the old string into the new strong.
@callable: regex.ReplaceString @param: oldString @String @param: pattern @String @param: newString @String @retval: replacedString @String @retval: err @Error
@usage: new_config = regex.replace(nginx_conf, "listen[\s]*80;", "listen 81;")
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.