Emerald Editor Discussion
September 23, 2017, 05:13:41 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: A question about regular wildcard characters  (Read 4639 times)
0 Members and 1 Guest are viewing this topic.
drymetal
Prospector
*
Posts: 1


« on: September 22, 2010, 01:06:20 pm »

I've been using Crimson Editor for about 6-7 years I think.  And this is the first time I have ever had to do this.   So I don't know how stupid the question is - but any help would be useful.
I need to find and just delete a bunch of things in an SQL export.   Below is just an example of code from my file:

Code:
`products_name` = 'XT HTR 7595 APG HD <FONT SIZE=2 COLOR=RED><B><I>(MAP: 89.99)</B>',`products_description` =
The part -
Code:
<FONT SIZE=2 COLOR=RED><B><I>(MAP: 89.99)</B>
    needs to be found and replaced.

The problem is that the MAP:# changes over 40,000 times in the file.  Is there anyway to use wildcards to just let Crimson Editor assume something goes there and to replace it?
I don't know how wildcards work in Crimson Editor.  (Or any text editor) 


I thought I could just search for:
Code:
<FONT SIZE=2 COLOR=RED><B><I>(MAP: **.**)</B>

and it would find every instance of that regardless of the MAP price.  But that isn't working.   So any ideas?   Thanks.
Logged
pn8830
Global Moderator
Jeweller
*****
Posts: 252



« Reply #1 on: October 01, 2010, 07:14:02 pm »

If I understood you correctly you want to find lines looking like:

Code:
<FONT SIZE=2 COLOR=RED><B><I>(MAP: 11.22)</B>
<FONT SIZE=2 COLOR=RED><B><I>(MAP: 34.56)</B>
<FONT SIZE=2 COLOR=RED><B><I>(MAP: 9.22)</B>
<FONT SIZE=2 COLOR=RED><B><I>(MAP: 0.1)</B>
<FONT SIZE=2 COLOR=RED><B><I>(MAP: 89.00)</B>

and remove them, is that correct?

If yes then you need to open Search/Replace dialog, check Regular Expression checkbox and search for the following expression:

Code:
\<FONT SIZE=2 COLOR=RED\>\<B\>\<I\>\(MAP\: [0-9\.]+\)\</B\>


I hope this helps.

Cheers,
PN.
Logged

Entities should not be multiplied beyond necessity
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.107 seconds with 18 queries.