Sign in to follow this  
Followers 0
TehWhale

[RESOLVED}StringRegExpReplace

3 posts in this topic

#1 ·  Posted (edited)

So lets say I have this string for example:

http://www.epicwar.com/maps/download/5/%28...207.4.w3x\

When it comes out, it should be:

http://www.epicwar.com/maps/download/5/%289%29Twilight FrozenMaul 7.4.w3x

Also, it would change %28 to "(" and %29 to ")"

and would totally return

http://www.epicwar.com/maps/download/5/(9)Twilight FrozenMaul 7.4.w3x

Thanks for your help fellow AutoIt'rs!

Edited by Alienware

Share this post


Link to post
Share on other sites



So lets say I have this string for example:

http://www.epicwar.com/maps/download/5/%28...207.4.w3x\

When it comes out, it should be:

http://www.epicwar.com/maps/download/5/%289%29Twilight FrozenMaul 7.4.w3x

Also, it would change %28 to "(" and %29 to ")"

and would totally return

http://www.epicwar.com/maps/download/5/(9)Twilight FrozenMaul 7.4.w3x

Thanks for your help fellow AutoIt'rs!

I would expect it is as easy to use StringReplace

$Result = StringReplace($string,"%20"," ")

$Result = StringReplace($Result,"%28","(")

$Result = S...


Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites

Hmm, I never thought of it that way, I was reading the: "Disemvowel" topic, where someone had used it, so I thought that would be what I need. But there is multiple copies in this string. So should I use Do/Until there isnt a %20! ;) I will. :D

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0