

The Files which are used to run the Program. For example, it would be quite valid to have:įor the replacement string. Of course, we're free to manipulate the replacements string as we like. So, lets say we wanted to swap around the two words in the filename. Everything within each set of brackets is treated as a "grouping", and we refer to these groupings as \1, \2, \3 etc. We then have exactly the same again, i.e. If I had wanted multiple spaces I would probably have typed "space asterisk", or possible ( *) to group. This means we can allow any number of letters. The lower-case letters are denoted by in the same way, followed by an asterisk. The single capital letter is denoted by the, i.e. What this says is that we want any capital letter, followed by any number of lower-case letters. (*) This is a single "group", which we will use later. ^ This means start at the beginning of the string A Regular Expression which performs this task is : Assume you have a file called Program Files, and you wish to swap the names around (e.g.
