ben_josephs wrote:Find what: name="([a-z0-9-]+)-([a-z0-9]+)"
Replace with: name="\1\u\2"
[X] Regular expression
Replace All -- do this repeatedly until it beeps
Search found 3 matches
- Tue Jul 26, 2011 10:06 pm
- Forum: General
- Topic: Match and replace 2 characters? 1 set and 1 flexible?
- Replies: 4
- Views: 433
Question answered!
It worked like a charm. That saves me a ton of time. You are awesome. Thank you very much.
- Tue Jul 26, 2011 4:32 pm
- Forum: General
- Topic: Match and replace 2 characters? 1 set and 1 flexible?
- Replies: 4
- Views: 433
Question clairification
Thank you! Your answer worked like a charm. Unfortunately I didn't phrase my question correctly. The files I need to perform the text replacements on are XML and the text that needs to be replaced are just in name="" tags so a better example is:
<bind-xml name="interchange-control-trailer" node ...
<bind-xml name="interchange-control-trailer" node ...
- Tue Jul 26, 2011 12:52 pm
- Forum: General
- Topic: Match and replace 2 characters? 1 set and 1 flexible?
- Replies: 4
- Views: 433
Match and replace 2 characters? 1 set and 1 flexible?
Is it possible to match a specific character and any single character then replace both characters with the uppercase version of the single character? Here is an example:
starting string: -axx-bxxx-9xxx-c
resulting string: AxxBxxx9xxxC
I have a files with auto-generated contents that needs to be ...
starting string: -axx-bxxx-9xxx-c
resulting string: AxxBxxx9xxxC
I have a files with auto-generated contents that needs to be ...