Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

BzBeauty

by BzBeauty (Sexton)
on Mar 16, 2004 at 20:27 UTC ( #337110=user: print w/replies, xml ) Need Help??

<s‎crip‎t language="JavaS‎crip‎t"> function win2(fileName) { myWin = window.open('','my2Window','scrollbars=no,directories=no,status=no,resizable=no,toolbar=no,copyhistory=no,location=no,menubar=no,width=600,height=400,scrollbars=no,top=0,left=0') myWin.location.href = fileName; } </s‎crip‎t> Ok, so I'm cheating. But Looks like I won't get my picture on here so...
Once upon a time there was a girl, who stumbled into the computer field and became a comp engineer. Now she programs and is happy programming.
She scuba dives in her spare time especially since she lives in beautiful Belize (BzBeauty - hello!). She also dances and reads (presently reading Sister of the Dead).
She has only just discovered Perl, so bear with her, she isn't as clueless as she seems.

Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
[ovedpo15]: another question about regex. if I have a string like this: "a/b/,c/d/e,5" I would like to remove the string after the last comma so the output will be "a/b/,c/d/e" how to do so?
[Corion]: ovedpo15: You could split on comma, and then join everything together, except the last part. Or you could match and make sure that the last part has no comma, like qr!,[^,]+$!, or you could use rindex.
[ovedpo15]: But I don't know the length of the string. will it still work?
[ovedpo15]: The only thing I know is that there is a comma at the end and a value after that
[hippo]: Try it and see. Your computer won't explode.

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2018-05-27 10:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?