Search found 10 matches

by adamas
24 Feb 2018, 12:38
Forum: Ask For Help
Topic: RegEx to Match Expression With Quotation Marks
Replies: 19
Views: 2830

Re: RegEx to Match Expression With Quotation Marks

line = "publishedAt": "2018-02-15T04:00:01.000Z" MsgBox % substr(RegExReplace(line, ".*publishedAt"":\s*?""(.*)"".*?", "$1") ,1,10) THANK YOU so very, very, very much much! This really helps a ton and first and foremost allows me to learn and better understand AutoHotkey's regex! I modified the cod...
by adamas
16 Feb 2018, 09:43
Forum: Ask For Help
Topic: RegEx to Match Expression With Quotation Marks
Replies: 19
Views: 2830

Re: RegEx to Match Expression With Quotation Marks

Good people, could anyone please be so kind to lend a hand with this little puzzle? : )))
by adamas
15 Feb 2018, 17:58
Forum: Ask For Help
Topic: RegEx to Match Expression With Quotation Marks
Replies: 19
Views: 2830

Re: RegEx to Match Expression With Quotation Marks

Guys, I use the following code string: RegExMatch(VideoData, "OmU).*videoId"":\s*?""(.*)"".*?", RegExResultHoldover) VideoId := RegExResultHoldover[1] To strip text between the second quotes from here: "videoId": "GlUrz6NYXRE" Could anyone please be so kind to help me modify the code string above to...
by adamas
21 Nov 2017, 05:15
Forum: Ask For Help
Topic: RegEx to Match Expression With Quotation Marks
Replies: 19
Views: 2830

Re: RegEx to Match Expression With Quotation Marks

Some like this ? text = ( "nextPageToken": "CAEQAA", "regionCode": "US", "videoId": "KhmrdFsY6Ls" "pageInfo": { "totalResults": 245, "resultsPerPage": 1 ) RegExMatch(text, "OmU).*videoId"":\s*?""(.*)"".*?", out) MsgBox % out[1] This does exactly what I need, THANK YOU so very, very, very much! You ...
by adamas
21 Nov 2017, 03:35
Forum: Ask For Help
Topic: RegEx to Match Expression With Quotation Marks
Replies: 19
Views: 2830

Re: RegEx to Match Expression With Quotation Marks

text = "videoId": "KhmrdFsY6Ls" RegExMatch(text, """.*?"".*?""(.*?)""", Matched) msgbox, % Matched1 Hey! Is there any way to make it narrow and specific to the string? The issue is that there are a ton of of information in the text where I'm trying to regex it that have the same pattern as the stri...
by adamas
20 Nov 2017, 17:06
Forum: Ask For Help
Topic: RegEx to Match Expression With Quotation Marks
Replies: 19
Views: 2830

RegEx to Match Expression With Quotation Marks

Guys, I'm struggling with RegEx a bit (yet again). I'm trying to put together a regex to apply to expression like this "videoId": "KhmrdFsY6Ls" and match (so RegExMatch) whatever's in-between the "videoId": " part and the last " . So in the example above I need the regex to match the KhmrdFsY6Ls por...
by adamas
14 Nov 2017, 19:16
Forum: Ask For Help
Topic: RegExMatch Question: Matching Numbers Between Two Symbols
Replies: 8
Views: 1560

Re: RegExMatch Question: Matching Numbers Between Two Symbols

You need to debug a bit. What does str look like after you do str := VideoLengthRaw ? Try MsgBox % VideoLengthRaw , or if it's a large file, try Clipboard := VideoLengthRaw and then paste the output into notepad to see what the variable contents look like. VideoLengthRaw is this file ( https://www....
by adamas
14 Nov 2017, 18:14
Forum: Ask For Help
Topic: RegExMatch Question: Matching Numbers Between Two Symbols
Replies: 8
Views: 1560

Re: RegExMatch Question: Matching Numbers Between Two Symbols

Other than the obvious, I have no good suggestion, regexmatch(str,"&length_seconds=(?P<ideoLength>\d+)&of=", V) ; :( msgbox % VideoLength str:="&length_seconds=1081&of=" regexmatch(str,"O)&length_seconds=(\d+)&of=",m), VideoLength := m[1] msgbox % VideoLength Helgef, thanks so much again for your i...
by adamas
14 Nov 2017, 16:51
Forum: Ask For Help
Topic: RegExMatch Question: Matching Numbers Between Two Symbols
Replies: 8
Views: 1560

Re: RegExMatch Question: Matching Numbers Between Two Symbols

You are missing an equals sign in your regex string. Old: (?<=&length_seconds=).*?(?&of=) New: (?<=&length_seconds=).*?(?=&of=) Note that \d matches only numbers. So it might be easier to use that in your regex match string, depending on what the rest of the pattern looks like. For example, the sim...

Go to advanced search