Rename by Replacing - Unexpected RegEx output

raulsamaniegoraulsamaniego MemberPosts:9Contributor II
Hi,

Maybe I'm doing something wrong but I don't understand why this replacement regex adds "MyString" after $1.

Thanks in advance

<宏/ >

Tagged:

Best Answer

  • kaymankayman MemberPosts:662Unicorn
    Solution Accepted
    Because you use a greedy regex, no real start or end point.
    Try with ^(.*)$ instead.
    raulsamaniego

Answers

  • raulsamaniegoraulsamaniego MemberPosts:9Contributor II
    Thanks!!
    Even though only ^(.*) is really needed in this case, I'll use the $ also. Just to avoid forget ir next time.:)
    kayman
Sign InorRegisterto comment.