Link to home
Start Free TrialLog in
Avatar of TheCommunicator
TheCommunicatorFlag 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?
ASKER CERTIFIED SOLUTION
Avatar of Terry Woods
Terry Woods
Flag of New Zealand image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of 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
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Yes I am trying to find this in visual studio editor.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
This helped thanks:)