|
LOL
Obviously regex == regular expressions
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Thank you very much
Know is Drop, Unknown is Ocean
|
|
|
|
|
Well, i've not used regex much. But there's always just string.Replace , try this:
string data = ...;
string body = data.Replace("\n", "<br />");
body = body.Replace("\t<br />", "\t\n");
body = body.Replace("\r<br />", "\r\n");
So you replace the \n 's then fix the ones you shouldn't have replaced. But of course somebody should come along shortly and give a regex expression to do this a another way.
My current favourite word is: I'm starting to run out of fav. words!
-SK Genius
Game Programming articles start - here[ ^]-
|
|
|
|
|
Thank you very much. It working well
Know is Drop, Unknown is Ocean
|
|
|
|
|
Dude, that's like using a sledgehammer to break a nut. String.Replace should suffice here.
Cheers,
Vikram.
The hands that help are holier than the lips that pray.
|
|
|
|
|
If he didn't have the \t and \r rules, I would agree.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
:kicks self for not reading properly:
Cheers,
Vikram.
The hands that help are holier than the lips that pray.
|
|
|
|
|
Hi,
Any one having knowledge in Admission and Ticketing system. Please let me know.
|
|
|
|
|
If this is homework, you need to start it yourself. If htis is a client, don't steal from them, instead ask if anyone here wants the work, if you want us to do it all for you.
You've not even said if the system is web based ( I assume it would be, even tho this is not the ASP.NET forum )
A ticketing system stores details of the tickets on offer in a database, and allows people to request tickets and pay for them, how's that for a start ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
1)How many pages Gridview will allowes..(maximum number of Pages)
2)I have one gridview and one button contol.In that gridview i have checkbox control.
now my problem is when i press a button(btnCheck) the checkbox in the gridview control want to be checked..
Thanks
Pinna
modified on Tuesday, May 20, 2008 4:48 AM
|
|
|
|
|
The number to be encoded is 173946. Starting from the right side of the number (the units position), collect all of the odd position digits (i.e. digit 1, digit 3, digit 5, etc.) and create a new number leaving the digits in their left to right order. The new number would be 796.
|
|
|
|
|
Dixy wrote: The new number would be 796.
Correct.
Now do your own homework.
|
|
|
|
|
And you're in trouble if you need help with this homework question. Serious trouble.
Semicolons: The number one seller of ostomy bags world wide. - dan neely
|
|
|
|
|
Well let see .... I think you can start with a for or foreach loop. And then you can move on to Google to get some more information.
Logic makes the world go around ....
Regards,
The only programmers that are better that C programmers are those who code in 1's and 0's
Programm3r
My Blog: ^_^
|
|
|
|
|
I would go with a while loop:
while not num.BON
{
etc.
}
where BON is Beginning Of Number...
Semicolons: The number one seller of ostomy bags world wide. - dan neely
|
|
|
|
|
The problem is well defined, hence: good luck!
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
I find it fun to take some simple homework assignment like this and try to turn it into a one-liner.
int encode(int v){return 0<v?0xa*encode(v/0x64)+v%0xa:v-v;}
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
It would be SO awesome if he submits this....
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi,
I downloaded a solution in C#,where i found files with XAML extensions,which i cannot open in VS 2005.I want to know about windows presentation Foundation.Do i need to install anything??What should i do to run that solution??
Regards,
Priya
|
|
|
|
|
Either install .NET 3.0, or get VS2008.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
|
Rubbish. .NET 3.5 does NOT support VS2005, no IDE is ever compatible with a new framework, 3.0 is not a new framework, it's an add on to 2.0.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Not strictly true Christian. VS2005 will work with .NET 3.5 but the compiler won't understand some of the new coding structures so you have to code a little differently.
This link[^] has a few details.
To the OP, WPF can be added on by installing .NET 3.0 and Visual Studio 2005 extensions for .NET Framework 3.0 (WCF & WPF). Just google for wpf vs2005
Dave
|
|
|
|
|
I want to enlarge the icons in a LilstView. How do I do?
_____________________________
...and justice for all
APe
|
|
|
|
|
change the image height & width.
|
|
|
|