Replace ] with space

View: New views
5 Messages — Rating Filter:   Alert me  

Replace ] with space

by Alessio Forconi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello to  everyone,

I have a string as follows

[somethings1] somethings2]

and I have to eliminate the ] after somethings1 so in order to obtain this

[somethings1 somtehings2]

Thanks for your help.... and excuse for my bad English...


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: http://www.houseoffusion.com/groups/RegEx/message.cfm/messageid:1141
Subscription: http://www.houseoffusion.com/groups/RegEx/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user837.14401.21




Re: Replace ] with space

by Ganta Srinivasa Rao :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Orso,

can do some thing like this

<cfset str= "[somethings1] somethings2]" />

<cfset str = REReplaceNoCase(str,"[0-9]]","","ALL")& "]">

Thanks
Srinivas

**



On 5/29/08, Orso Bubu <forconia@...> wrote:

>
> Hello to  everyone,
>
> I have a string as follows
>
> [somethings1] somethings2]
>
> and I have to eliminate the ] after somethings1 so in order to obtain this
>
> [somethings1 somtehings2]
>
> Thanks for your help.... and excuse for my bad English...
>
>
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: http://www.houseoffusion.com/groups/RegEx/message.cfm/messageid:1142
Subscription: http://www.houseoffusion.com/groups/RegEx/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user837.14401.21




Re: Replace ] with space

by Ganta Srinivasa Rao :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

sorry,try this..
<cfset str= "[somethings1] somethings2]" />

<cfset str = REReplaceNoCase(str,"]","","ALL")& "]">

Thanks
Srinivas


On 5/29/08, Ganta Srinivasa Rao <srganta@...> wrote:

>
> Hi Orso,
>
> can do some thing like this
>
> <cfset str= "[somethings1] somethings2]" />
>
> <cfset str = REReplaceNoCase(str,"[0-9]]","","ALL")& "]">
>
> Thanks
> Srinivas
>
> **
>
>
>
> On 5/29/08, Orso Bubu <forconia@...> wrote:
>>
>> Hello to  everyone,
>>
>> I have a string as follows
>>
>> [somethings1] somethings2]
>>
>> and I have to eliminate the ] after somethings1 so in order to obtain this
>>
>> [somethings1 somtehings2]
>>
>> Thanks for your help.... and excuse for my bad English...
>>
>>
>>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: http://www.houseoffusion.com/groups/RegEx/message.cfm/messageid:1143
Subscription: http://www.houseoffusion.com/groups/RegEx/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user837.14401.21




Re: Replace ] with space

by Alessio Forconi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks Srinivas for your help

I use the platform. NET, you can implement this for .NET?

2008/5/29, Ganta Srinivasa Rao <srganta@...>:
> sorry,try this..
>  <cfset str= "[somethings1] somethings2]" />
>
>  <cfset str = REReplaceNoCase(str,"]","","ALL")& "]">
>
>  Thanks
>  Srinivas
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: http://www.houseoffusion.com/groups/RegEx/message.cfm/messageid:1144
Subscription: http://www.houseoffusion.com/groups/RegEx/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user837.14401.21




Re: Replace ] with space

by Ganta Srinivasa Rao :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

you can try this
str= Regex.Replace(str,"]","")
str= str & "]"

On 5/29/08, Alessio Forconi <forconia@...> wrote:

>
> Thanks Srinivas for your help
>
> I use the platform. NET, you can implement this for .NET?
>
> 2008/5/29, Ganta Srinivasa Rao <srganta@...>:
> > sorry,try this..
> >  <cfset str= "[somethings1] somethings2]" />
> >
> >  <cfset str = REReplaceNoCase(str,"]","","ALL")& "]">
> >
> >  Thanks
> >  Srinivas
> >
>
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: http://www.houseoffusion.com/groups/RegEx/message.cfm/messageid:1145
Subscription: http://www.houseoffusion.com/groups/RegEx/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user837.14401.21