473,799 Members | 3,121 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Find non-quoted string using RegEx

Joe
I need to do a find/replace on a column name in DataColumn.Expr ession.

Is there a way to do the following using RegEx?

MyColumn 10 and Desc = "This is MyColumn desc"

I need to replace the MyColumn which is not in a quoted string.

Thanks,
Joe
Sep 29 '06 #1
4 1814
Do you know what hte value will be beforehand? If so it could be a
simple regex.Replace type of thing.

If you need more info on regex I have a short tutorial on my site:
http://devdistrict.com/CodeDetails.aspx?A=314
Kelly Elias
Webmaster
http://devdistrict.com
Joe wrote:
I need to do a find/replace on a column name in DataColumn.Expr ession.

Is there a way to do the following using RegEx?

MyColumn 10 and Desc = "This is MyColumn desc"

I need to replace the MyColumn which is not in a quoted string.

Thanks,
Joe
Sep 29 '06 #2
Joe
The problem with replace is that it will replace all instances of the value
even if it is contained in a quoted string. I need to replace the value that
is not in a quoted string.

"Cryptik" <ke*********@gm ail.comwrote in message
news:11******** **************@ m7g2000cwm.goog legroups.com...
Do you know what hte value will be beforehand? If so it could be a
simple regex.Replace type of thing.

If you need more info on regex I have a short tutorial on my site:
http://devdistrict.com/CodeDetails.aspx?A=314
Kelly Elias
Webmaster
http://devdistrict.com
Joe wrote:
>I need to do a find/replace on a column name in DataColumn.Expr ession.

Is there a way to do the following using RegEx?

MyColumn 10 and Desc = "This is MyColumn desc"

I need to replace the MyColumn which is not in a quoted string.

Thanks,
Joe

Sep 30 '06 #3
Hi Joe,

The Regular Expression replacement needs to following certain pattern.
Which means that you need to find out a rule what your expression will be.
For example, is your expression always like this

MyColumn 10 and Desc = "This is MyColumn desc"

Or it will be more complex? What are the "MyColumn"s you need to replace
will be? Just replace all that is not in the quotes? Please let me know
more about this, so that I can deliver my further assistance. Thank you!

Kevin Yu
Microsoft Online Community Support

=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
=============== =============== =============== =====

(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Oct 2 '06 #4
Hi Joe,

I'd like to know if this issue has been resolved yet. Is there anything
that I can help. I'm still monitoring on it. If you have any questions,
please feel free to post them in the community.

Kevin Yu
Microsoft Online Community Support
=============== =============== =============== =====
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Oct 5 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
1604
by: Yasutaka Ito | last post by:
Hi, Is there a way to find to which control the current control is docked against? For example, let's say I have panel1 and panel2 docked to left within a form. The panel1 is the first one on the left and the panel2 is the second one docked against panel1. I want to be able to find out to which control/form the specified panel.
3
9085
by: RobG | last post by:
I would like a query that will tell me the minimum non-zero value in a row. Say I have a table with a column called recordID that contains unique record IDs, and have a set of values named V1, V2 up to V9 that I want to find the minimum value for each record. The values are decimal floating point numbers, some of the columns contain zeros but I want to ignore those and get the minimum non-zero number. I know how to do column sorting,...
6
11211
by: Ravi | last post by:
Hi, I need to find the non-recursive algorithm to find the height of a Binary Tree. Regards, SunLight.
3
1366
by: Bruce D | last post by:
I'm new to .NET and I have a error that is coming up but it's not telling me where the error is coming from (no file). Is that because I'm doing something wrong...or is it a type of error that has nothing to do with my code? P.S. I'm debugging someone else's code. Here's what the screen looks like when I load the page: *************************************************** Input String was not in a correct format Exception Details:...
9
3099
by: Nak | last post by:
Hi there, I'm getting some strange warnings appearing while I'm compiling a couple of setup projects I have in a solution. I'm being informed of the following warnings, WARNING: Unable to find dependency 'mscorlib' (Signature='B77A5C561934E089' Version='1.0.5000.0') of assembly 'System.dll' WARNING: Unable to find dependency 'mscorlib' (Signature='B77A5C561934E089' Version='1.0.5000.0') of assembly 'System.Xml.dll'
9
1758
by: Lad | last post by:
Hello How can I find out in Python whether the operand is integer or a character and change from char to int ? Regards, L.
18
2076
by: anand | last post by:
*********************************************************************************************************** #include<stdio.h> #include<conio.h> #include<math.h> void main() { double a,b,c,fa,fb,fc,err; int count;
3
26125
usafshah
by: usafshah | last post by:
C:\Documents and Settings\Link>nslookup *** Can't find server name for address 192.168.0.100: Non-existent domain Default Server: UnKnown Address: 192.168.0.100 > mypc *** UnKnown can't find mypc: Non-existent domain ------------------------------------------------------------------
11
1702
by: Siddhu | last post by:
Hai, i am student & i have struck up with the following program's output. Kindly help me to reason out why the output goes as which is given below. THE PROGRAM goes as; #include<iostream.h> #include<conio.h> void main() { int i=0,x={1,2,3,4,5},y={5,4,3,2,1},r={0,0,0,0,0}; while(i++<5)
0
1516
by: Bryce | last post by:
I have an ObjectDataSource binding a GridView, with Delete enabled. The following is the declaration (with non-delete stuff left out to save space): <asp:ObjectDataSource ID="CatalogItemsListDataSource" runat="server" DeleteMethod="DeleteCatalogItem" InsertMethod="InsertCatalogItem" OldValuesParameterFormatString="original_{0}" SelectMethod="GetCatalogItemsList" TypeName="CatalogItemManager" UpdateMethod="UpdateCatalogItem">...
0
9538
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10470
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10214
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9067
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7561
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5459
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5583
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4135
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2935
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.