JDownloader Community - Appwork GmbH
 

Closed Thread
 
Thread Tools Display Modes
  #1  
Old 14.07.2019, 13:55
djmakinera djmakinera is offline
JD Legend
 
Join Date: May 2010
Location: Poland
Posts: 8,197
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, 09:42
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 63,945
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, 11:05
djmakinera djmakinera is offline
JD Legend
 
Join Date: May 2010
Location: Poland
Posts: 8,197
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, 11:15
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 63,945
Default

For example: \w+-\w+
__________________
JD-Dev & Server-Admin
  #5  
Old 15.07.2019, 14:37
djmakinera djmakinera is offline
JD Legend
 
Join Date: May 2010
Location: Poland
Posts: 8,197
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, 14:40
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 63,945
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, 14:55
djmakinera djmakinera is offline
JD Legend
 
Join Date: May 2010
Location: Poland
Posts: 8,197
Default

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

**External links are only visible to Support Staff****External links are only visible to Support Staff**
  #8  
Old 15.07.2019, 15:09
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 16,144
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, 15:15
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 63,945
Default

Quote:
Originally Posted by djmakinera View Post
really?

**External links are only visible to Support Staff****External links are only visible to Support Staff**
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 05:00.
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 - 2019, Jelsoft Enterprises Ltd.