I want to select the first occurrence of a space in a line to change that positional character. Each line can have numerous spaces. I’ve search the web trying several variations and have taken a short regex course online. I cannot seem to get it right. Any help is appreciated.
Sample text:
`xxxxxxxxxxxxxxxxxxx
`xxxxxxxxxxxxxxxxxx
`xxxxxxxxxxxxxxxxx
`xxxxxxxxxxxxxxxxxxXxxx
`xxxxxxxxxxxxxxxXxxxx
`xxxxxxxxxxxxxxxxxXxxxx
`xxxxxxxxxxxxxxx
`xxxxxxxxxxxxxxxxxxxXxxxxxxxxxXxxx
`xxxxxxxxxxxxxxxxxxxXxxxxxxxxxXxxxxxx
`xxxxxxxxxxxxxxxxxxxxxxxxxxxxXxxx
`xxxxxxxxxxxxxxxxxxxxxxxxxxXxxxxxxxxXxxxxxxXxxXxxxx
`xxxxxxxxxxxxxxxxxxxxxxxxxxXxxxxxxxxXxxxxxxXxxXxxxx
`xxxxxxxxxxxxxxxxxxxxxxxxxxXxxxxxxXxxxxxxxXxxxxxxXxxxXxxxXxxxx
`xxxxxxxxxxxxxxxxxxxxXxXxxxxxxXxxXxxxx
`xxxxxxxxxxxxxxxxxxxxxxxxxxXxXxxxxxxXxxxXxxxXxxxx
`xxxxxxxxxxxxxxxx
`xxxxxxxxxxxxxxxxXxxxxxxx