AutoHotkey Community

It is currently May 26th, 2012, 1:33 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: December 21st, 2007, 10:42 pm 
Offline

Joined: October 1st, 2007, 4:09 pm
Posts: 17
Hi again. I'm trying to remove parentheses from a string I'm reading from an environment variable. Essentially, I'm pulling a dynaminc project name, but one project name happens to have open and closed parentheses. Can anyone help me fill in the blank here...

Code:
PRJNAME = "Big Project (Phase 1)"

StringReplace, PRJNAME, PRJNAME, ____________,, All


Desired result for PRJNAME is "BIG Project Phase 1"


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 21st, 2007, 10:49 pm 
Offline
User avatar

Joined: August 11th, 2004, 1:47 am
Posts: 5347
Location: UK
Try:

Code:
StringReplace, PRJNAME, PRJNAME, (, , All
StringReplace, PRJNAME, PRJNAME, ), , All

_________________
GitHubScriptsIronAHK Contact by email not private message.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: 0x150||ISO, Retro Gamer, sjc1000, Yahoo [Bot] and 11 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group