Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Advanced regular expression, search replace in Visual Studio 2010

Posted on 2011-02-18
3
586 Views
Last Modified: 2012-05-11
I need to replace this:

<xs:element name="artifact" minOccurs="0" nillable="true">
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="100"/>
          </xs:restriction>
        </xs:simpleType>
 </xs:element>

Open in new window


With this:

<xs:element name="artifact" minOccurs="0" nillable="true">
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="10000000"/>
          </xs:restriction>
        </xs:simpleType>
 </xs:element>

Open in new window


Same thing with increased maxlength attribute.  
0
Comment
Question by:griffja21
  • 2
3 Comments
 
LVL 75

Accepted Solution

by:
käµfm³d   👽 earned 500 total points
ID: 34929622
Try this:
Find:

{\<xs\:element:b+name="artifact":b+minOccurs=":z":b+nillable="true"\>\n:b+\<xs\:simpleType\>\n:b+\<xs\:restriction:b+base="xs\:string"\>\n:b+\<xs\:maxLength:b+value="}:z


Replace:

\110000000

Open in new window

0
 

Author Closing Comment

by:griffja21
ID: 34935913
Excellent
0
 
LVL 75

Expert Comment

by:käµfm³d 👽
ID: 34936037
Glad to help  : )
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I have been reconstructing a PHP-based application that has grown into a full blown interface system over the last ten years by a developer that has now gone into business for himself building websites. I am not incredibly fond of writing PHP code o…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question