Search found 31 matches

by rj8810
06 Oct 2022, 21:53
Forum: Tips and Tricks (v1)
Topic: how to make autohotkey work on pc via rdp connections, or work on multiple, different and independent virtual desktops
Replies: 2
Views: 5169

Re: how to make autohotkey work on pc via rdp connections, or work on multiple, different and independent virtual deskto

I update, the previous methods did not work for me on another pc with windows 10, but RPD wraper works great, https://github.com/sebaxakerhtc/rdpwrap/releases/download/v1.8.6.1/RDPWrapMod-v1.8.6.1.zip You should only run the install.bat file, and after installation run RDP_CnC.exe from the installat...
by rj8810
12 Sep 2022, 21:44
Forum: Ask for Help (v1)
Topic: get regexmatch to search for a certain string but only from and to a certain specific character
Replies: 1
Views: 274

get regexmatch to search for a certain string but only from and to a certain specific character

hello friends I was wondering if there is a way to get regexmatch to search for a certain string but only from and to a certain specific character. I find it quite simple as long as that specific character is not repeated in the text document even if regexmatch does not incorporate it in its options...
by rj8810
12 Sep 2022, 21:15
Forum: Ask for Help (v1)
Topic: how to know the number of the alternative that matched in regexmatch
Replies: 1
Views: 257

how to know the number of the alternative that matched in regexmatch

hello beautiful autohotkey community, I was wondering if it is possible to know the number of the alternative (|) of the second regexmatch parameter that matched ("NeedleRegEx") taking into account the order in which they were written from left to right, I know it is possible to store NeedleRegEx in...
by rj8810
19 Aug 2022, 23:28
Forum: Ask for Help (v1)
Topic: how to make regexmatch only search up to a certain character or position and ignore the rest of the text Topic is solved
Replies: 5
Views: 1130

Re: how to make regexmatch only search up to a certain character and ignore the rest of the text Topic is solved

You can use a substring as your haystack, or: str = axabcxdebfxghibxjklb find = b start = 10 end = 20 pos := (pos := RegExMatch(str, find,, start)) > end ? 0 : pos MsgBox, 64, Position, %pos% wow, thank you very much, it works great, I owe you one. by the way, i renamed the topic for someone in the...
by rj8810
18 Aug 2022, 23:03
Forum: Ask for Help (v1)
Topic: how to make regexmatch only search up to a certain character or position and ignore the rest of the text Topic is solved
Replies: 5
Views: 1130

Re: how to make regexmatch only search up to a certain character and ignore the rest of the text Topic is solved

str = axabcxdebfxghibxjklb find = b RegExMatch(str, "P).*?x.*?(\Q" find "\E).*?x", m) MsgBox, 64, Position, %mPos1% THANK YOU VERY MUCH "mikeyww", IT SEEMS THAT THE DELIMITING CHARACTER HERE is the "X",This worked fine for me when I want to put a known character as a delimiter, but how would I achi...
by rj8810
18 Aug 2022, 21:42
Forum: Ask for Help (v1)
Topic: how to make regexmatch only search up to a certain character or position and ignore the rest of the text Topic is solved
Replies: 5
Views: 1130

Re: how to make regexmatch only search up to a certain character and ignore the rest of the text Topic is solved

apparently the use of .*?keywordendposition seems to be the answer, or the use of look behind a look ahead assertions, but 2 lines of regexmatch code are needed, one to capture the substring of the entire string and separate it from it, and the other to search in the substring if the desired words e...
by rj8810
17 Aug 2022, 10:32
Forum: Ask for Help (v1)
Topic: how to make regexmatch only search up to a certain character or position and ignore the rest of the text Topic is solved
Replies: 5
Views: 1130

how to make regexmatch only search up to a certain character or position and ignore the rest of the text Topic is solved

hello beautiful auothotkey community, I have the following code: q:: str := "yellow3xxxyellow2xxxyellow1xxxbluexxxred1xxxred2xxxred3xxxyellow....against...yellow2xxxblue2xxxred2...againt...yellow3xxxblue3xxxred3" p := 1 array := [] while p:= RegExMatch(str, "yellow(?:(?!yellow).)*?blue.*?red", m, p+...
by rj8810
07 Aug 2022, 00:39
Forum: Ask for Help (v1)
Topic: find the closest word to another word from right to left Topic is solved
Replies: 4
Views: 754

Re: find the closest word to another word from right to left Topic is solved

It is not so difficult to accomplish that, but, as mikeyww and I apparently see it, the problem is that it is not as clearly defined as you state. As I understand it, I would describe the issue as follows: in the exact order stipulated, find the word "yellow" followed by one more characters that do...
by rj8810
06 Aug 2022, 23:54
Forum: Ask for Help (v1)
Topic: how to prevent Look-ahead and look-behind assertions have effect on the entire string Topic is solved
Replies: 24
Views: 3704

@rj8810, it seems you are trying to match html, yet your example isn't valid html... With your example I guess something like this would work: href="((?:.(?!href="))*?anything-(?:.(?!">))*?\/div\(id:\d.*?)"> , whereas with real HTML this would probably be better: href="((?:.(?!">))*?anything-(?:.(?...
by rj8810
06 Aug 2022, 23:10
Forum: Tips and Tricks (v1)
Topic: how to make autohotkey work on pc via rdp connections, or work on multiple, different and independent virtual desktops
Replies: 2
Views: 5169

how to make autohotkey work on pc via rdp connections, or work on multiple, different and independent virtual desktops

full topic: "how to make autohotkey work on pc via rdp connections, or work on multiple, different and independent virtual desktops without scripts interfering with each other." ¡if anyone has a better idea please post it! the problem with autohotkey working on desktops or virtual machines in the cl...
by rj8810
25 Jul 2022, 20:52
Forum: Ask for Help (v1)
Topic: how to prevent Look-ahead and look-behind assertions have effect on the entire string Topic is solved
Replies: 24
Views: 3704

Re: how to prevent Look-ahead and look-behind assertions have effect on the entire string Topic is solved

Try this: document = href="222xxxhref="111xxxanything-xxx/div(id:123)">yyyy/div(id:222)"> keyword2 = anything RegExMatch(document, "(href="")(.(?!(?1)|(?3)))*?.?(" . keyword2 . ")(?2)*?/div\(id:\d+\)"">", m) MsgBox, % m thank you very much, this code seems to work very well, :bravo: :dance: :D q:: ...
by rj8810
25 Jul 2022, 14:23
Forum: Ask for Help (v1)
Topic: how to prevent Look-ahead and look-behind assertions have effect on the entire string Topic is solved
Replies: 24
Views: 3704

Re: how to prevent Look-ahead and look-behind assertions have effect on the entire string Topic is solved

AlphaBravo wrote:
25 Jul 2022, 10:07
Descolada wrote:
25 Jul 2022, 00:58
@rj8810, could you post a concise description of what you are trying to match and what the rules of matching need to be? Preferably post the real haystack you are using, not the one with reds and yellows :)
+1
ready, post a real case of what I need, in advance thanks to all
by rj8810
25 Jul 2022, 14:20
Forum: Ask for Help (v1)
Topic: how to prevent Look-ahead and look-behind assertions have effect on the entire string Topic is solved
Replies: 24
Views: 3704

Re: how to prevent Look-ahead and look-behind assertions have effect on the entire string Topic is solved

@rj8810, could you post a concise description of what you are trying to match and what the rules of matching need to be? Preferably post the real haystack you are using, not the one with reds and yellows :) GRacias 1.- my wish is to find a pattern composed of 3 words: keyword = href=" keyword2 = %v...
by rj8810
25 Jul 2022, 00:14
Forum: Ask for Help (v1)
Topic: how to prevent Look-ahead and look-behind assertions have effect on the entire string Topic is solved
Replies: 24
Views: 3704

Re: how to prevent Look-ahead and look-behind assertions have effect on the entire string Topic is solved

or if you really have to use one liner: H = 111yellow111yellow222blue222red222 RegExMatch(H, "i)yellow((([^ybr]+|y+(?!ellow)|b+(?!lue)|r+(?!ed))?)blue(?2))red", m) MsgBox % m1 Alphabravo unfortunately it can't implement your code properly, this was as far as I got: w:: keyword:="anytng" H = href=22...
by rj8810
24 Jul 2022, 21:55
Forum: Ask for Help (v1)
Topic: how to prevent Look-ahead and look-behind assertions have effect on the entire string Topic is solved
Replies: 24
Views: 3704

Re: how to prevent Look-ahead and look-behind assertions have effect on the entire string Topic is solved

just out of curiosity does anyone know how to put something like an anchor to negative look-ahead assertion: H = yellow222yellow111blue111red111red222red333forthisyellownoworkingthecode ; negative look-ahead only until the word red should have effect K = yellow(?!.*yellow anchorred).*?blue.*?red ; R...
by rj8810
24 Jul 2022, 21:46
Forum: Ask for Help (v1)
Topic: how to prevent Look-ahead and look-behind assertions have effect on the entire string Topic is solved
Replies: 24
Views: 3704

Re: how to prevent Look-ahead and look-behind assertions have effect on the entire string Topic is solved

or if you really have to use one liner: H = 111yellow111yellow222blue222red222 RegExMatch(H, "i)yellow((([^ybr]+|y+(?!ellow)|b+(?!lue)|r+(?!ed))?)blue(?2))red", m) MsgBox % m1 thank you very much alfabravo, now your code works perfectly. :superhappy: :thumbup: :clap: :bravo: H = yellow333yellow222y...
by rj8810
24 Jul 2022, 16:14
Forum: Ask for Help (v1)
Topic: how to prevent Look-ahead and look-behind assertions have effect on the entire string Topic is solved
Replies: 24
Views: 3704

Re: how to prevent Look-ahead and look-behind assertions have effect on the entire string Topic is solved

Does anyone have any idea how to capture subpatterns with the code of AlphaBravo:

Code: Select all

H = 111yellow111yellow222blue222red222
RegExMatch(H, "i)yellow(([^ybr]+|y+(?!ellow)|b+(?!lue)|r+(?!ed))?)blue(?1)red", m)
MsgBox % m
for example the subpattern between yellow and red
by rj8810
24 Jul 2022, 16:10
Forum: Ask for Help (v1)
Topic: how to prevent Look-ahead and look-behind assertions have effect on the entire string Topic is solved
Replies: 24
Views: 3704

Re: how to prevent Look-ahead and look-behind assertions have effect on the entire string Topic is solved

did you try my modified needle from my last post!! H = 111yellow111yellow222blue222red222 RegExMatch(H, "i)yellow(([^ybr]+|y+(?!ellow)|b+(?!lue)|r+(?!ed))?)blue(?1)red", m) MsgBox % m hello, thank you, the code fulfills the purpose, impressive, I have never been so close to achieving it, the only p...
by rj8810
22 Jul 2022, 18:36
Forum: Ask for Help (v1)
Topic: find the closest word to another word from right to left Topic is solved
Replies: 4
Views: 754

find the closest word to another word from right to left Topic is solved

I think the clearest and most summarized way to express what I want to achieve is the following: find the nearest word(yellow) to another word(blue) from right to left example: yellow3xxxyellow2xxxyellow1xxxbluexxxred1xxxred2xxxred3xxxyellow.... finding the nearest word (red) to another word (blue) ...
by rj8810
22 Jul 2022, 18:28
Forum: Ask for Help (v1)
Topic: how to prevent Look-ahead and look-behind assertions have effect on the entire string Topic is solved
Replies: 24
Views: 3704

Re: how to prevent Look-ahead and look-behind assertions have effect on the entire string Topic is solved

in case someone didn't understand me I think the clearest and most summarized way to express what I want to achieve is the following: find the nearest word(yellow) to another word(blue) from right to left example: yellow3xxxyellow2xxxyellow1xxxbluexxxred1xxxred2xxxred3xxxyellow.... finding the neare...

Go to advanced search