Avatar of TheCommunicator
TheCommunicator
Flag for United States of America asked on

Regex Pattern

Hello everybody,

Well, basically I am lookin for a Regex pattern that helps me find and replace following pattern

lookupKey="AR Contains AR"

So I have this LookUpKey attribute in my XML document and what some of the attribue values have spaces inside and what I want is something whcih finds these spaces and replaces them with "-"( A hyphen)

How can I come up with that kind of combincation?
C#ASP.NET.NET Programming

Avatar of undefined
Last Comment
TheCommunicator

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Terry Woods

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
TheCommunicator

ASKER
Well, that did not work but someboyd already did it for every look up attribute and that looked something like

{lookupkey="}[a-z\- ]*"

Now, we have to actually narrow it down to all the look up attributes with spaces inside the values.

???
SOLUTION
Terry Woods

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
TheCommunicator

ASKER
Yes I am trying to find this in visual studio editor.
SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
TheCommunicator

ASKER
This helped thanks:)
Your help has saved me hundreds of hours of internet surfing.
fblack61