JDownloader Community - Appwork GmbH
 

Notices

Closed Thread
 
Thread Tools Display Modes
  #1  
Old 14.07.2019, 14:55
djmakinera djmakinera is offline
Banned
 
Join Date: May 2010
Location: Poland
Posts: 8,387
Default Regular Expressions Syntax JD2 - Search name

Regular Expressions Syntax - Search name, not work for me


Code:
- !" - "
!" - "

- = search for a literal -
! = NOT
  #2  
Old 15.07.2019, 10:42
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

I don't know why you think that ! is NOT. Because ! is just !, that's it. You can check on regex101.com
__________________
JD-Dev & Server-Admin
  #3  
Old 15.07.2019, 12:05
djmakinera djmakinera is offline
Banned
 
Join Date: May 2010
Location: Poland
Posts: 8,387
Default

Begin Quote and End Quote Regex

\Q-\E

I want find "-" without spaces and only between words.

Languard-pack.pdf
Snow - pack- -.pdf
  #4  
Old 15.07.2019, 12:15
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

For example: \w+-\w+
__________________
JD-Dev & Server-Admin
  #5  
Old 15.07.2019, 15:37
djmakinera djmakinera is offline
Banned
 
Join Date: May 2010
Location: Poland
Posts: 8,387
Default

No exact match for some names.

six-1-a.pdf
six-1-a-1.pdf
a-six1-a-.pdf
  #6  
Old 15.07.2019, 15:40
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

Please , learn regex for yourself. if you don't want numbers, then use
[a-zA-Z]+-[a-zA-Z]+
__________________
JD-Dev & Server-Admin
  #7  
Old 15.07.2019, 15:55
djmakinera djmakinera is offline
Banned
 
Join Date: May 2010
Location: Poland
Posts: 8,387
Default

Quote:
Originally Posted by Jiaz View Post
if you don't want numbers, then use
[a-zA-Z]+-[a-zA-Z]+
really?

https://postimg.cc/JGfbWQqd
  #8  
Old 15.07.2019, 16:09
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,611
Default

[a-zA-Z0-9\-]+\.pdf
please educate yourself with guides/books/online material/websites that help you write regular expressions against content that you want to match against.
seriously no more questions about regex patterns.

raztoki
__________________
raztoki @ jDownloader reporter/developer
http://svn.jdownloader.org/users/170

Don't fight the system, use it to your advantage. :]
  #9  
Old 15.07.2019, 16:15
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

Quote:
Originally Posted by djmakinera View Post
yes, really, you can check in regex101.
__________________
JD-Dev & Server-Admin
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 01:28.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.