JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #21  
Old 17.04.2019, 12:37
djmakinera djmakinera is offline
JD Legend
 
Join Date: May 2010
Location: Poland
Posts: 8,294
Default

You can consider
but nobody knows how to do it anyway.
Reply With Quote
  #22  
Old 17.04.2019, 15:00
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 65,456
Default

please provide an example file with 100 lines or so and send to support@jdownloader.org
__________________
JD-Dev & Server-Admin
Reply With Quote
  #23  
Old 17.04.2019, 17:00
djmakinera djmakinera is offline
JD Legend
 
Join Date: May 2010
Location: Poland
Posts: 8,294
Default

Ticket ID: LMN-474-68187
Reply With Quote
  #24  
Old 18.04.2019, 10:37
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 65,456
Default

Tested and works fine in regex101
Quote:
(?:===\s*|^)(https?:.*?)(?:[\r\n]+)(.*?)(?:[\r\n]+)
__________________
JD-Dev & Server-Admin
Reply With Quote
  #25  
Old 18.04.2019, 11:07
djmakinera djmakinera is offline
JD Legend
 
Join Date: May 2010
Location: Poland
Posts: 8,294
Default

Quote:
Originally Posted by Jiaz View Post
Tested and works fine in regex101
Thanks for the help.
Unfortunately, there is a problem with the expression.
In this case, select lines 383 and 384
It does not mark the next line 385
Similarly with others lines.
See screenshot:
**External links are only visible to Support Staff****External links are only visible to Support Staff**

Used engines:
Perl Regex, Regex++
Onigmo
Reply With Quote
  #26  
Old 18.04.2019, 11:10
djmakinera djmakinera is offline
JD Legend
 
Join Date: May 2010
Location: Poland
Posts: 8,294
Default

Hm, maybe add the next part of the expression
Include 3 lines

(?:===\s*|^)(https?:.*?)(?:[\r\n]+)(.*?)(?:[\r\n]+)(.*?)(?:[\r\n]+)
Reply With Quote
  #27  
Old 18.04.2019, 11:26
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 65,456
Default

It's up to you if you want to include 1 or 2 lines, but now you have a working pattern
__________________
JD-Dev & Server-Admin
Reply With Quote
  #28  
Old 18.04.2019, 11:40
djmakinera djmakinera is offline
JD Legend
 
Join Date: May 2010
Location: Poland
Posts: 8,294
Default

Thanks Jiaz for taking the time and help.
Reply With Quote
  #29  
Old 18.04.2019, 14:39
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 65,456
Default

You're welcome. I can help better and faster if you always provide real examples first and tell what you really want to achieve
__________________
JD-Dev & Server-Admin
Reply With Quote
  #30  
Old 21.04.2019, 01:26
djmakinera djmakinera is offline
JD Legend
 
Join Date: May 2010
Location: Poland
Posts: 8,294
Default

New question...


OK:
Find the missing dot at the end of the line in the text.

Missing dot:
Find the missing dot at the end of the line in the text


do not look for a dot at the end of the line:
I want to ignore any URLs
I want to ignore any Cyrillic alphabet

Something is wrong here:
[^\.]\r\n(!?(http|https):\/\/[\w\-_]+(\.[\w]+)+([\w\-\.,@?^=%&:/~\+#]*[\w\-\@?^=%&/~\+#])?)+[А-Яа-я])
Look only in the text in Polish or English (normal text), without Unicode.
Reply With Quote
  #31  
Old 21.04.2019, 13:44
djmakinera djmakinera is offline
JD Legend
 
Join Date: May 2010
Location: Poland
Posts: 8,294
Default

need some CORRECT:
\r\n(?!http|www|А-Яа-я?).+[^\.]
Reply With Quote
  #32  
Old 24.04.2019, 19:27
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 65,456
Default

Sorry but I don't understand. Can you please provide new example file and tell exactly what you want to achieve. I don't understand your OK and Missing dot
__________________
JD-Dev & Server-Admin
Reply With Quote
  #33  
Old 25.04.2019, 09:46
djmakinera djmakinera is offline
JD Legend
 
Join Date: May 2010
Location: Poland
Posts: 8,294
Default

I want to find sentences in which there is a missing dot at the end of the line.
This regular expression searches for sentences with a dot at the end of the line, but I want it to find the missing dot.

\.{1,}$

Besides, he must ignore the links in the text, because there can not be dots at the end of the line.

**External links are only visible to Support Staff****External links are only visible to Support Staff**
Обо мне
O mnie
1. Witamy na stronach mojego bloga, ktry staram si uczyni najbardziej
Reply With Quote
  #34  
Old 25.04.2019, 14:13
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 65,456
Default

how about
Quote:
.*[^\.]$
__________________
JD-Dev & Server-Admin
Reply With Quote
  #35  
Old 25.04.2019, 14:13
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 65,456
Default

So you want all lines without dot at the end, but no links?
__________________
JD-Dev & Server-Admin
Reply With Quote
  #36  
Old 25.04.2019, 14:28
djmakinera djmakinera is offline
JD Legend
 
Join Date: May 2010
Location: Poland
Posts: 8,294
Default

Quote:
Originally Posted by Jiaz View Post
So you want all lines without dot at the end, but no links?
Yes. No links.

Other special Character
for quotations by adding the escape \ before the " in the string
.*[^"\.?!:=»А-Яа-я"]$
Reply With Quote
  #37  
Old 25.04.2019, 18:59
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 65,456
Default

check this
Quote:
^(?!https?:).*[^\.]$
__________________
JD-Dev & Server-Admin
Reply With Quote
  #38  
Old 25.04.2019, 19:23
djmakinera djmakinera is offline
JD Legend
 
Join Date: May 2010
Location: Poland
Posts: 8,294
Default

It works, but I still have a question, if I want to add different special characters, what is the order of matching?
Quote:
The regular expression contains an invalid character.

**External links are only visible to Support Staff****External links are only visible to Support Staff**
Reply With Quote
  #39  
Old 25.04.2019, 20:22
djmakinera djmakinera is offline
JD Legend
 
Join Date: May 2010
Location: Poland
Posts: 8,294
Default

Recognize These Characters:
!#$%&'()*+,-./:;=?@\^_~

Character Not Allowed at End:
!'(),.:;?
Reply With Quote
  #40  
Old 26.04.2019, 13:23
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 65,456
Default

Can you again provide an example?
You want complete line without
Quote:
!'(),.:;?
__________________
JD-Dev & Server-Admin
Reply With Quote
Reply

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 19:35.
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.