Search found 10 matches
- 24 Feb 2018, 12:38
- Forum: Ask for Help (v1)
- Topic: RegEx to Match Expression With Quotation Marks
- Replies: 19
- Views: 6255
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...
- 22 Feb 2018, 14:20
- Forum: Ask for Help (v1)
- Topic: RegEx to Match Expression With Quotation Marks
- Replies: 19
- Views: 6255
Re: RegEx to Match Expression With Quotation Marks
Anyone, guys?
- 16 Feb 2018, 09:43
- Forum: Ask for Help (v1)
- Topic: RegEx to Match Expression With Quotation Marks
- Replies: 19
- Views: 6255
Re: RegEx to Match Expression With Quotation Marks
Good people, could anyone please be so kind to lend a hand with this little puzzle? : )))
- 15 Feb 2018, 17:58
- Forum: Ask for Help (v1)
- Topic: RegEx to Match Expression With Quotation Marks
- Replies: 19
- Views: 6255
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...
- 21 Nov 2017, 05:15
- Forum: Ask for Help (v1)
- Topic: RegEx to Match Expression With Quotation Marks
- Replies: 19
- Views: 6255
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 ...
- 21 Nov 2017, 03:35
- Forum: Ask for Help (v1)
- Topic: RegEx to Match Expression With Quotation Marks
- Replies: 19
- Views: 6255
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...
- 20 Nov 2017, 17:06
- Forum: Ask for Help (v1)
- Topic: RegEx to Match Expression With Quotation Marks
- Replies: 19
- Views: 6255
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...
- 14 Nov 2017, 19:16
- Forum: Ask for Help (v1)
- Topic: RegExMatch Question: Matching Numbers Between Two Symbols Topic is solved
- Replies: 8
- Views: 2283
Re: RegExMatch Question: Matching Numbers Between Two Symbols Topic is solved
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....
- 14 Nov 2017, 18:14
- Forum: Ask for Help (v1)
- Topic: RegExMatch Question: Matching Numbers Between Two Symbols Topic is solved
- Replies: 8
- Views: 2283
Re: RegExMatch Question: Matching Numbers Between Two Symbols Topic is solved
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...
- 14 Nov 2017, 16:51
- Forum: Ask for Help (v1)
- Topic: RegExMatch Question: Matching Numbers Between Two Symbols Topic is solved
- Replies: 8
- Views: 2283
Re: RegExMatch Question: Matching Numbers Between Two Symbols Topic is solved
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...