Add Text at first space?

Post any Bulk Rename Utility support requirements here. Open to all registered users.

Add Text at first space?

Postby captain351 » Sun Aug 03, 2025 12:36 am

How do I add text at the first space in a filename
captain351
 
Posts: 1
Joined: Sun Aug 03, 2025 12:34 am

Re: Add Text at first space?

Postby Admin » Sun Aug 03, 2025 12:45 am

To add text at the first space in a filename using Bulk Rename Utility:

1. Use the Add (7) section to insert text.
2. In the "Insert" box, enter the text you want to add.
3. Use the "Name Segment" feature to target the position of the first space:
- Set "Name Segment -> From:" to 1 (start of filename).
- Set "Name Segment -> To:" to the position of the first space.
- Alternatively, use a regular expression or Replace (3) to find the first space.
4. Another method is to use Replace (3):
- In "Replace", enter a space character (press spacebar once).
- In "With", enter the space plus your text (e.g., " MyText").
- This will replace the first space with space + your text, effectively inserting text at the first space.
- To replace only the first occurrence, use the position modifier: Replace: \first\ (space) With: " " + your text.

Example:
- Original filename: "MyHolidayPhotos.jpg"
- Replace (3) Replace: \first\ (space)
- Replace (3) With: " MyText "
- Result: "My MyText HolidayPhotos.jpg"

This inserts "MyText" right after the first space.

If you want to insert text exactly at the first space without removing the space, use Replace with the first space matched and replaced by space + your text.

Summary:
- Use Replace (3) with \first\ modifier on space character to insert text at first space.
- Or use Name Segment and Add (7) Insert with careful positioning.
Admin
Site Admin
 
Posts: 3047
Joined: Tue Mar 08, 2005 8:39 pm


Return to BRU Support