perl regexp problem
hello
i have a question in perl lets say for example that I have the string with substrings "/:" in it (multiple occurances are possible). Now I want to extract these and replace them with something else (let's say with "...") how can I do that? I tried: $var=~y/\/:/\n/s; but this replaces every "/" only, and thats not what I wanted... Any idea? Thanks raven |
Code:
[n00b@localho.outernet] cat test.pl |
yes, it did work, thanks alot. where was this kinda stuff documented? I read trough a few doc, but did not find *this* one...
raven |
well, i know u can use anything as teh separator of reg-ex's, but i think iread that in some deitel book a while go
|
Code:
perldoc perlrequick |
All times are GMT -5. The time now is 12:21 AM. |