Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#129534 - 07/12/2002 12:02 Can't search for a backslash character in Emplode?
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
Has this been mentioned before? I get strange errors in Emplode when attempting to do searches for a backslash character.

Situation is... I'm trying to search through all of my song tags and locate instances where the file would produce illegal-file-name results when downloaded to the PC. For instance, if a song title contains a question mark ("Are You Okay?"), it would get converted to an underscore in the file name when downloaded to the PC ("Are You Okay_"). I'm trying to make sure my collection is edited to avoid that problem.

The illegal characters are:
\ / : * ? " < > |

In addition, I'm going to search for underscores, and certain patterns of hyphens and parentheses in certain fields which would screw up my ability to use my preferred filenames-to-tags pattern in Tag Studio.

By the way, how do I search for a double quote in a field using the emplode advanced search?
_________________________
Tony Fabris

Top
#129535 - 07/12/2002 13:59 Re: Can't search for a backslash character in Emplode? [Re: tfabris]
mschrag
pooh-bah

Registered: 09/09/2000
Posts: 2303
Loc: Richmond, VA
I would _guess_ that backslash is the escape character in Emplode ... try searching for \\ and quote as \". This is just a conjecture, mind you.

Top
#129536 - 07/12/2002 18:10 Re: Can't search for a backslash character in Emplode? [Re: mschrag]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
First thing I tried.
_________________________
Tony Fabris

Top
#129537 - 07/12/2002 19:44 Re: Can't search for a backslash character in Emplode? [Re: tfabris]
tonyc
carpal tunnel

Registered: 27/06/1999
Posts: 7058
Loc: Pittsburgh, PA
How 'bout:

title contains "\""

That's double-quote, backslash, double-quote, double quote.
_________________________
- Tony C
my empeg stuff

Top
#129538 - 07/12/2002 20:20 Re: Can't search for a backslash character in Emplode? [Re: tonyc]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
Second thing I tried. Produces a different error message, but produces one nonetheless.
_________________________
Tony Fabris

Top
#129539 - 07/12/2002 20:39 Re: Can't search for a backslash character in Emplode? [Re: tfabris]
tonyc
carpal tunnel

Registered: 27/06/1999
Posts: 7058
Loc: Pittsburgh, PA
You sure? It worked for me...
_________________________
- Tony C
my empeg stuff

Top
#129540 - 07/12/2002 21:30 Re: Can't search for a backslash character in Emplode? [Re: tonyc]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
You sure? It worked for me...

I get an error box saying Expected closing quote in 'title contains "\"'.
_________________________
Tony Fabris

Top
#129541 - 07/12/2002 21:43 Re: Can't search for a backslash character in Emplode? [Re: tfabris]
tonyc
carpal tunnel

Registered: 27/06/1999
Posts: 7058
Loc: Pittsburgh, PA
I get an error box saying Expected closing quote in 'title contains "\"'.

That's what I get when I do this:

title contains "\"

.
But when I do this:


title contains "\""

.
It finds songs with a double-quote in the title. The two outside double-quotes designate it as a string, and the backslash escapes the "middle double-quote"
_________________________
- Tony C
my empeg stuff

Top
#129542 - 07/12/2002 23:03 Re: Can't search for a backslash character in Emplode? [Re: tonyc]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
Ah, OK, so that's how I find a quote. How do I find a backslash?
_________________________
Tony Fabris

Top
#129543 - 07/12/2002 23:19 Re: Can't search for a backslash character in Emplode? [Re: tfabris]
tonyc
carpal tunnel

Registered: 27/06/1999
Posts: 7058
Loc: Pittsburgh, PA
Um, get Roger to fix Emplode.
_________________________
- Tony C
my empeg stuff

Top
#129544 - 09/12/2002 03:35 Re: Can't search for a backslash character in Emplode? [Re: tonyc]
Roger
carpal tunnel

Registered: 18/01/2000
Posts: 5683
Loc: London, UK
Unfortunately, Peter was smoking crack when he wrote the string tokeniser -- it can't cope with a backslash before the closing quote. I'll fix it later. In the meantime, search for:

title like "*\\*"
_________________________
-- roger

Top
#129545 - 09/12/2002 05:17 Re: Can't search for a backslash character in Emplode? [Re: Roger]
Roger
carpal tunnel

Registered: 18/01/2000
Posts: 5683
Loc: London, UK
FITNR. Backslash inside a string literal now treats the next character literally. In other words...

"abc\"def\\gh\ijkl"

...is treated as the string literal...

abc"def\ghijkl
_________________________
-- roger

Top
#129546 - 09/12/2002 07:08 Re: Can't search for a backslash character in Emplode? [Re: Roger]
tonyc
carpal tunnel

Registered: 27/06/1999
Posts: 7058
Loc: Pittsburgh, PA
And there was much rejoicing.
_________________________
- Tony C
my empeg stuff

Top
#129547 - 09/12/2002 10:40 Re: Can't search for a backslash character in Emplode? [Re: Roger]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
Roger, YOU DA MAN.

And get Peter into a 12-step program.
_________________________
Tony Fabris

Top
#129548 - 13/12/2002 07:50 Re: Can't search for a backslash character in Emplode? [Re: tfabris]
sirmanson
journeyman

Registered: 06/03/2002
Posts: 70
Loc: Tucson, AZ USA
A short term solution you can use my access application to import an emplode CSV dump of your database and search for slashes.

http://empeg.comms.net/php/showflat.php?Cat=&Board=empeg_general&Number=129202&page=0&view=collapsed&sb=5&o=0&fpart=2&vc=1
_________________________
----- RioCar 60gb

Top
#129549 - 13/12/2002 08:43 Re: Can't search for a backslash character in Emplode? [Re: sirmanson]
revlmwest
addict

Registered: 05/06/2002
Posts: 497
Loc: Hartsville, South Carolina for...
Ok... I have no business in this forum, much less this thread, but I always read through them anyway. I guess I do it hopes that I will some how gleen bits of knowledge from the masters. As I read this thread there was so much I didn't understand that my brain was desperately searching to find words it recognized. So much that I read this
In reply to:

Unfortunately, Peter was smoking crack when he wrote the string tokeniser


as Unfortunately, Peter was smoking crack when he wrote the string TOLKIENISER....cool so does it convert all the tags to tengwar.
_________________________
Michael West

Top
#129550 - 13/12/2002 10:28 Re: Can't search for a backslash character in Emplode? [Re: revlmwest]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
_________________________
Tony Fabris

Top