Search found 6 matches

by electrone77
20 Mar 2019, 09:25
Forum: Ask For Help
Topic: Replace All Text In File
Replies: 8
Views: 1278

Re: Replace All Text In File

you might wanna try it with tf.ahk, its a lib you need to download, however i am not sure how it handles the files. Heres the info download example codes (see 1st code there is "!" before File.txt. i guess it overwrites the file): TF_ReplaceInLines("!File.txt","1,3,9","","key","lock") ; update sourc...
by electrone77
18 Mar 2019, 18:23
Forum: Ask For Help
Topic: Add space after a subdomain in an url. How? Topic is solved
Replies: 15
Views: 1610

Re: Add space after a subdomain in an url. How? Topic is solved

hey, here's my 2 cents. kinda :offtopic: since question is already answered :angel: urls = ( https www.test.com / Broken Link for safety http test.co.uk /jpg.png Broken Link for safety https pbs.test.gr /xxx/xxx.jpg Broken Link for safety ) msgbox % regexreplace(urls, "m`a)(https?://(www\.|pbs\.)?.*...
by electrone77
18 Mar 2019, 16:35
Forum: Ask For Help
Topic: Find the first occurrence of text and stop
Replies: 8
Views: 1042

Re: Find the first occurrence of text and stop

in-case i might have misunderstood your question, please excuse my poor English. in addition to Blue Kodiak's post (which is awesome), here is another way to see if there are more than 1 occurrances in the text: text = your text here if regexmatch(text, "(\|\-.*?){2}") ;so {2} here is: number of occ...
by electrone77
16 Mar 2019, 17:34
Forum: Ask For Help
Topic: Find the first occurrence of text and stop
Replies: 8
Views: 1042

Re: Find the first occurrence of text and stop

yw i'm glad it worked :thumbup:
by electrone77
16 Mar 2019, 15:18
Forum: Ask For Help
Topic: Find the first occurrence of text and stop
Replies: 8
Views: 1042

Re: Find the first occurrence of text and stop

Hi, so if there's a "|-" in the text you want it to stop and perform some other action? i guess this might help. text = I have a page of text in which contains numerous "|-". How is it possible to find a single occurrence and then stop so that the macro can perform some other action? if RegExMatch(t...
by electrone77
16 Mar 2019, 13:37
Forum: Ask For Help
Topic: Replacing and storing text to clipboard Topic is solved
Replies: 10
Views: 1284

Re: Replacing and storing text to clipboard Topic is solved

Not sure if i understand it correctly, but i hope this helps. 1)if you know which word to replace: text = Clipboard is a built-in variable that reflects the current contents of the Windows clipboard ABCXYZ if those contents can be expressed as text. clipboard := regexreplace(text, "ABCXYZ", clipboar...

Go to advanced search