how do you replace just the single white space between words to '_' in python?
For example:
Input:
09 Web Problem Any problem has to do with the dept. web sites
12 SW Help Questions about installed SW (hotline support)
Output:
09 Web_Problem Any_problem_has_to_do_with_the_dept._web_sites
12 SW_Help Questions_about_installed_SW_(hotline_support)
thanks!
s.replace(' ', '_')would be the answer, but you seem to have a requirement not to put underscores around numbers.