Pages Navigation Menu

Advanced SEO Tutorials

Categories Navigation Menu

A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Replace Your Titles In Seconds - Regex problem
August 31, 2013
10:27 pm
Avatar
MexiKen
Member
Members
Forum Posts: 8
Member Since:
September 21, 2012
sp_UserOfflineSmall Offline

I’ve been using your suggested combination of JuicyTitles and “Replace Your Titles In Seconds” and think it’s great. However, I seem to be having a problem with it today and I can NOT figure out what is going on, so I’m really hoping someone can help me sort it out.

For some reason, today Notepad++ keeps giving me errors when I try doing the title replacement (even though I’ve done it successfully in the past).  Regardless of whether I use the regular find/replace in regular expression mode, or the TextFX plugin > Quick, nothing is working.  In fact, if I simply use the regular “find” function (in regex mode), and tell it to find Title="{(.*)}" I get an error saying “Invalid regular expression”

So… is it just me doing something wrong, or is there now a bug in N++, or what? 

I really like the concept of using more original titles, and I don’t want to go in to each project… if anyone has a suggestion on how to fix this, work around it, or an alternative to it, I would love to hear it.

Thanks in advance,

MexiKen

September 1, 2013
6:05 am
Avatar
Pobman
Gold Coast - Oz
Admin
Forum Posts: 1250
Member Since:
June 5, 2011
sp_UserOfflineSmall Offline

Mmmm… just updated my copy of NotePad++ to check and get the same error… seems they have changed something… will have to look in to that.

 

 

September 1, 2013
6:40 am
Avatar
Pobman
Gold Coast - Oz
Admin
Forum Posts: 1250
Member Since:
June 5, 2011
sp_UserOfflineSmall Offline

Go back to an old version, has to be quite old http://notepad-plus-plus.org/d…..5.9.8.html and it will work again…

 

Clearly I have not updated Notepad++ in a very long time and there have been some changes to V6 … I will have to update my regex knowledge… The problem seems to be down to the { } … BTW we are hoping Juicy Titles will be integrating this in directly to their app… its a work in progress.

September 1, 2013
7:37 am
Avatar
Pobman
Gold Coast - Oz
Admin
Forum Posts: 1250
Member Since:
June 5, 2011
sp_UserOfflineSmall Offline

OK I have only spent a few minutes on this … BUT the following would seem to work OK in V6 or newer:

 

  • Find what: Title=".*"
  • Replace with = Title="{Title1|Title2}"

 

Note we now do NOT have the {} in the search term, but we DO have to add the {} in the replace term. Please make a backup of any campaign before testing this as I cant be 100% sure this is perfect….

 

September 1, 2013
2:13 pm
Avatar
MexiKen
Member
Members
Forum Posts: 8
Member Since:
September 21, 2012
sp_UserOfflineSmall Offline

Thanks Pobman! 

I thought you were away for a few days, so I was bangin’ my head trying to figure it out myself.  I tried several older versions of N++ too, but apparently not old enough.  I then went to Notepad2 and got your original regex to work, but the problem was that they have very limited amount of chars that you can use to replace. So it became a multi-step process of changing the expression in N2 with a very small replacement title, then going back to N++ and doing a normals find/replace using the TextFX plugin that can handle more characters.

I’ll go give your new version a shot in a bit, as it’s obviously a lot neater.

Thanks so much for your help, as always! :)

P.S. – just a reminder to go change that in your original post…

September 1, 2013
11:14 pm
Avatar
Pobman
Gold Coast - Oz
Admin
Forum Posts: 1250
Member Since:
June 5, 2011
sp_UserOfflineSmall Offline

At the moment the original post links here… until this new regex has been confirmed a little more. The only change is we have removed the {} from the search term as it would seem since version 6 of Notepad++ the {} are part of the regex syntax itself.

 

Oh and yes I was away … first thing to great me on return was this :)

December 6, 2013
5:50 am
Avatar
Ray Amsterdam
Grand Old Nuke of York
Members
Forum Posts: 74
Member Since:
July 28, 2011
sp_UserOfflineSmall Offline

This seems to work, except that as far as I can tell from my brief testing, you have to restrict the number of characters between the { } to about 2030 (it worked with 2028, but wouldn’t work with many characters more).  My version of Notepad ++ is 6.5.1.

 

I will say though, that I find importing the campaign into SENuke after the mass replace rather unstable.  Sometimes it imports ok, and other times it fails.

 

Ray

Forum Timezone: America/New_York

Most Users Ever Online: 79

Currently Online:
7 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

david prulhiere: 173

Jonathan: 105

Ray Amsterdam: 74

c0s01452: 65

Splatire: 64

Mike L: 64

Member Stats:

Guest Posters: 49

Members: 6155

Moderators: 1

Admins: 1

Forum Stats:

Groups: 1

Forums: 5

Topics: 975

Posts: 4083

Newest Members:

Pranjal Bhardwaj, Jeff Garner, John Sader, Chen Long, Alex Smith, Pranjal Bhardwaj

Moderators: Rudi: 37

Administrators: Pobman: 1250

Pin It on Pinterest

Share This