Go Back   CodingForums.com > :: Server side development > Other server side languages/ issues

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-15-2004, 07:58 PM   PM User | #1
castali
Regular Coder

 
Join Date: Feb 2004
Location: Earth
Posts: 158
Thanks: 0
Thanked 0 Times in 0 Posts
castali is an unknown quantity at this point
Regex

with 1,0,2,1,6 or 0,0,4,1,7
I want to get 10111 or 00111

then replacing any number > 1 by 1 and remove any coma

I am looking for a regex.replace(myString, regExpression, 1)

regExpression should something like

(,[2-9]) or ([2-9],)

thank you
castali is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:43 AM.


Advertisement
Log in to turn off these ads.