Questions tagged [search-regex]

Search Regex adds a set of search and replace functions to WordPress. The driving force behind this plugin is to aid in website migration and upgrading. The primary reason for the plugin was to aid in relocating directories.

Search Regex adds a set of search and replace functions to WordPress. These go beyond the standard searching capabilities, and allow you to search and replace almost any data stored on your site. In addition to simple searches you have the full power of PHP's regular expressions at your disposal.

The driving force behind this plugin is to aid in website migration and upgrading. If you've ever done either of these then you know the pain of having to go back through all your data, changing URL paths and fixing things. With this plugin you can reduce this work to a search and replace pattern and the job is finished in seconds.

Why would you want this? The primary reason for the plugin was to aid in relocating directories. It's a real pain to manually go through every post and change image directory names. With this plugin all that was required was a simple search and replace pattern, and the job was finished in a few seconds.

https://wordpress.org/plugins/search-regex/screenshots/

13 questions
7
votes
3 answers

Find & replace line breaks between double quotes

I have a CSV file containing some line breaks in values. For example: "Chiffre","Nom","Descriptif court","Tarifs en clair","Période en clair","Adresse 1","CP","Tel","Site","Facebook","Pictos","@Saveurs","@Famille plus","@Img","Accessible en fauteuil…
Nico Prat
  • 686
  • 2
  • 6
  • 13
3
votes
3 answers

UltraEdit regex replacing function exceeds available resource

I want to make shorter the long quotes in a large txt. My lines: 'Az ital miatt lettem szerelmes, A szerelem miatt pedig adósságba futottam, És bár küzdöttem, küzdöttem és küzdöttem, mégsem tudok szabadulni tőlük. Alexander Brome 'E. T." volt az…
1
vote
1 answer

Replacing *target* characters in RegEx without losing anything

parameter In Sublime Text 3 I am using the following RegEx code as my search combo to find any alphabet character preceding 0, followed by a space, followed by another character which is as follows: RegEx Code [a-z]0 [a-z] Search Target…
1
vote
1 answer

Regex - Duplicate HTML links and put something after it

I have a lot of such texts: [RandomThings2] [[RandomThings3]] I want to transform those into this:
0
votes
0 answers

Convert Spaces between Text and Numbers to Tabs in Sublime Text

I am cleaning up some data received from a client. The data structure is something like - AdminUnit1CodeAdminUnit2CodeAdminUnit3CodeAdminUnitNameData1Data2Data3 An example - 10 BIRAMPUR 44125 16425 27700 10…
0
votes
1 answer

Add missing slashes to all the urls in the wordpress database using Search Regex Plugin

I am using Search Regex plugin to update some content in the Wordpress database and have managed to replace string (i.e. replace all instance of stringone with stringtwo) but I am looking into finding all the urls in are in the database that don't…
Tami
  • 3
  • 2
0
votes
2 answers

perl non-greedy replace not working at the start

I am having a XML similar to this . . . . . . . . . . . . I need to…
Kannan Ramamoorthy
  • 3,980
  • 9
  • 45
  • 63
0
votes
1 answer

Regex, WordPress, and the Search Regex plugin - converting a script to a shortcode

I am using WordPress and the Search Regex plugin. I need to covert several hundred Posts that contain a script which contains a unique Photo album number. Each script needs to be changed to a shortcode which contains the same Photo album number.…
0
votes
1 answer

Wordpress Search Regex plugin breaks when I search

The plugin installed correctly, and presents me with the query UI. However, when I click search, I get a server error from Wordpress.
Choylton B. Higginbottom
  • 2,236
  • 3
  • 24
  • 34
0
votes
1 answer

Wordpress Search Regex plugin not matching greater than symbol

I am using the Search Regex plugin for Wordpress. I have it matching all of my regex except for the literal ">", which it never correctly matches.
Choylton B. Higginbottom
  • 2,236
  • 3
  • 24
  • 34
0
votes
2 answers

regex: how to find two recurring “ char within a line

I am having hundreds of lines as illustrated below, with more than one opening double-quote (“) occurring within almost every line as shown below: ... “ ... “ ..... “ ..... note: those dots (...) above denote both words & spaces in this context…
0
votes
0 answers

Regexp find and replace all links without image tag

I have Wordpress site. My task find all internal links without href ancors, and text of link exclude img tag. Now I have: /]+href\s*=\s*["'](?!(?:#|javascript\s*:))([^"']+)[^>]*>.*?<\/a>/si Now retrun:

-1
votes
1 answer

JavaScript RegExp - the "." is "cutting" the letter after it (highlight search result)

I have this piece of code : getText: function(record) { var inSearch = Ext.getCmp("incidentsFilters__search").value; var replaceWith = ''+inSearch+''; var record = record.text.join(',…
flori
  • 428
  • 1
  • 6
  • 22