Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > Non-English Discussions > Deutsches Forum > Software

Notices

Reply
 
Thread Tools Search this Thread
Old 03-18-2010, 04:46 PM   #1
ralphffm44
Zealot
ralphffm44 has a complete set of Star Wars action figures.ralphffm44 has a complete set of Star Wars action figures.ralphffm44 has a complete set of Star Wars action figures.ralphffm44 has a complete set of Star Wars action figures.
 
ralphffm44's Avatar
 
Posts: 107
Karma: 360
Join Date: May 2009
Location: Hessen
Device: K4NT
Calibre: verwendung regulärer Ausdrücke zum importieren

Hi,

irgendwie hatte ich mir das mit den regulären Ausdrücken bei Calibre wohl zu einfach vorgestellt, das was ich mir in der python-beschreibung herausgelesen habe führt nie zu den Ergebnissen, die ich erwartet hätte.

Vielleicht kann hier ein kleiner Nachhilfe-Kurs gestartet werden?

also: Aufbau des Dateinamens : vornameauthor nachnameauthor - titel.pdf

(?P<author>undhierirgendwas) hätte jetzt den autor-namen belegen sollen.

ich verstehe einfach nicht die Logik wie ich jetzt den Autor "ausschneide".



Grüße aus Hessen
Ralph
ralphffm44 is offline   Reply With Quote
Old 03-19-2010, 04:04 AM   #2
mtravellerh
book creator
mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.
 
mtravellerh's Avatar
 
Posts: 9,635
Karma: 3856660
Join Date: Oct 2008
Location: Luxembourg
Device: PB360°
Quote:
Originally Posted by ralphffm44 View Post
Hi,

irgendwie hatte ich mir das mit den regulären Ausdrücken bei Calibre wohl zu einfach vorgestellt, das was ich mir in der python-beschreibung herausgelesen habe führt nie zu den Ergebnissen, die ich erwartet hätte.

Vielleicht kann hier ein kleiner Nachhilfe-Kurs gestartet werden?

also: Aufbau des Dateinamens : vornameauthor nachnameauthor - titel.pdf

(?P<author>undhierirgendwas) hätte jetzt den autor-namen belegen sollen.

ich verstehe einfach nicht die Logik wie ich jetzt den Autor "ausschneide".



Grüße aus Hessen
Ralph
Vielleicht gehst Du das Ganze zu kopflastig an. Bitte schreib mir mal, was Du genau willst und wir versuchen, Dein Problem zusammen zu lösen.
mtravellerh is offline   Reply With Quote
Advert
Old 03-19-2010, 04:49 PM   #3
ralphffm44
Zealot
ralphffm44 has a complete set of Star Wars action figures.ralphffm44 has a complete set of Star Wars action figures.ralphffm44 has a complete set of Star Wars action figures.ralphffm44 has a complete set of Star Wars action figures.
 
ralphffm44's Avatar
 
Posts: 107
Karma: 360
Join Date: May 2009
Location: Hessen
Device: K4NT
Hallo, schön das einer guckt...

mein erstes Problem habe ich mittlerweile lösen können - ich hatte ein "Space" zuviel zwischen den Parametern...drum hat die Auflösung immer nicht funktioniert :-(

Aber nun zu meiner Frage:

Johann Goethe - 001 - Dramen 01
(?P<author>.+?) - [0-9].. - (?P<series>[^_]+)(?P<series_index>[0-9]+)

das mit author habe ich verstanden, .+ heisst: beliebig viele Zeichen - aber das ? kapier ich nicht.

dann kommen ein - und drei Ziffern (hab ich auch hinbekommen) wieder ein strich ...

und was bedeutet jetzt: [^_]+

(die unverstandenen Teile habe ich einfach durch kopieren und probieren rausbekommen, aber das macht mich nicht wirklich glücklich...)

Viele Grüße aus Hessen
Ralph
ralphffm44 is offline   Reply With Quote
Old 03-20-2010, 06:51 AM   #4
mtravellerh
book creator
mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.
 
mtravellerh's Avatar
 
Posts: 9,635
Karma: 3856660
Join Date: Oct 2008
Location: Luxembourg
Device: PB360°
Hier gibt es ein tolles Tutorial:

http://www.regular-expressions.info/tutorial.html
mtravellerh is offline   Reply With Quote
Old 03-21-2010, 08:11 AM   #5
ralphffm44
Zealot
ralphffm44 has a complete set of Star Wars action figures.ralphffm44 has a complete set of Star Wars action figures.ralphffm44 has a complete set of Star Wars action figures.ralphffm44 has a complete set of Star Wars action figures.
 
ralphffm44's Avatar
 
Posts: 107
Karma: 360
Join Date: May 2009
Location: Hessen
Device: K4NT
Heureka - habs gefunden

der Link von mtraveller hat tatsächlich weitergeholfen, dort gibt es eine gute Übersicht...

(?P<author>.+?) - [0-9].. - (?P<series>.+) (?P<series_index>[0-9]+) - (?P<title>.+)

Johann Wolfgang von Goethe - 001 - Komplettausgabe 02 - Faust.pdf

funktioniert jetzt auch mit dem o.g. Begriff.

[^_] übernimmt alle Zeichen ausser dem Unterstrich - war also völlig sinnlos.
.+ bedeutet: nimm mehrere Zeichen.


Danke an mtraveller

Ralph
ralphffm44 is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PocketBook zum Anfassen ? SkyDream PocketBook 5 02-22-2011 09:46 AM
Verlegerforderungen zum Leistungssschutzrecht netseeker Deutsches Forum 4 09-22-2010 06:26 AM
Fragen zum 301+ Tantus PocketBook 4 02-13-2010 12:07 PM
Gedanken zum Pocketbook eibix PocketBook 11 01-19-2010 04:47 AM
Alternative zum Kindle DX nilsreich Erste Hilfe 14 01-14-2010 06:01 AM


All times are GMT -4. The time now is 09:50 PM.


MobileRead.com is a privately owned, operated and funded community.