15,913,941 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Sovan Kumar Das (Top 7 by date)
Sovan Kumar Das
20-Sep-12 7:42am
View
Yes, both the options are there. But I wanted to make it easy(to me:)).
Sovan Kumar Das
3-Feb-12 1:37am
View
Hi Andi,
The result is what I want, with some performance issues. Like your approach. I am working on this to get going.
Thank you a trillion..
Sovan Kumar Das
3-Feb-12 1:24am
View
Hi TRK3,
Thank you a trillion..
I wanted this kind of suggestions..
Like it.
Sovan Kumar Das
2-Feb-12 4:57am
View
Thanks a lot Andi.
Sovan Kumar Das
2-Feb-12 1:48am
View
It's a small part of my project. I made it manually but later I thought whether there is any approach for the problem to solve it through regex. I was thinking for comments and suggestions from you guys. That's why I posted here.
BTW Thanks a lot.
I just want the simplest but efficient solution for the problem. The file is generated by some code. And it should not contain any nested braces and if contains then it is supposed to be a mistake which may happen by the time of creation of the file. So in that case the solution is that put a closing brace at the specified place because there will never be a closing brace for the opening brace which contains the nested brace.
Sovan Kumar Das
2-Feb-12 1:20am
View
Actually,I did it the way you are saying. But for a very lengthy file it is time consuming. So I was thinking to solve it through regex. I was looking for something like
"{\<contentbeforethelastsemicolon\>(;)+\<contentafterthelastsemicolon\>{"
(This is a rough regex)And from the regex I can extract the two content and adding an extra brace is easier.
Or I just split the (in the regex "{\<content\>{") content by semicolon. Then add one extra brace after the last one.
Or I can extract the content (between two opening brace which doesn't contain any closing brace) by Match.Value and modify it.
So I wanted your suggestions guys. Thank you for your reply.
Thanks a lot.
Sovan Kumar Das
2-Feb-12 1:15am
View
My file looks like this. It doesn't contain any nested braces. So I want to verify and correct it by my code.
Thanks.
Show More