Regular expression find and replace with wildcards

Hello!

For the world of me, I can't understand the right way to do it.

I made a list of family names, first names. I want to have a different style than the first name, last name.

So that's what I have now:

< b > AAGAARD, TODD, s. < /b > < br >
AAMOT, KARI, < b > < /b > < br >
< b > AARON, MARJORIE, c. < /b > < br >

and that's what I have:

< span class = "Name" > AAGAARD </span > < span class = "FirstName" >, TODD, s. </span > < br / >

< span class = "Name" > AAMOT </span > < span class = "FirstName" >, KARI, </span > < br / >

< span class = "Name" > AARON </span > < span class = "FirstName" >, MARJORIE, C. </span > < br / >

Any ideas?

Thank you!

Make a backup first.

In the use of the search box:

(\w+),\s+([^<]+)<\/b>\s*

In the field using replace:

$1 $2

Select use regular expression. Light blue paper touch, then click on replace all.

Tags: Dreamweaver

Similar Questions

  • Find and replace using wildcards

    I have inserted the contents of table using Insert/Table/Insert tabular data objects in DWCS3 and you want to remove the table insert unwanted code.

    Example:

    < td width =156 valign = top style = "width: 117.0pt;" border-top: none; border-left:
    None; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt;
    MSO-border-top-alt: solid windowtext .5pt; MSO-border-left-alt: solid windowtext .5pt;
    MSO-border-alt: solid windowtext .5pt; background: #FF8A50; padding: 0 cm 0 cm 5.4pt 5.4pt' > < class = MsoNormal p > < span style ='mso-bookmark: CurrentPosition' > < span
    style = "size are: 10.0pt;" make family:Arial'>

    The text between "width" and "Arial" "" varies but these two words start and end are the same in each case be replaced - how can I find and replace using a regex wildcard?  Did some research on the web, but not yet to come through response.  I thought it would be simple and I hope that it is, and I'm just having a shock. Is this something like Find: "< td [^" "] * > and replace it with:"< td > "?  Am I close?

    I would be grateful to anyone who helps and thank you in advance for your time.

    You may be able to resolve this issue with the commands > Clean Up Word HTML.

    However, the following regular expression should also do what you are looking for (do a first backup). Put this in the search field:

    ()
    

    Put this in the field replace:

    $1$2
    

    Select "use regular expression.

  • Regular Expression search and replace question - please help!

    I was wondering if someone could help me I have a lot of paper with notes like this: [1], but I need them to look like in this [1].

    I don't know what to put in the section find [[\d]*] , but I need help with what to put in the field replace to make < sup > numbers]

    In fact, your regular expression is false. What you need is the following:

    (\[\d+\])

    The field replace must contain this:

    $1

  • Find and replace it with an invalid Code in Dreamweaver CC 2015

    I have a HTML file of 800 line with about 200 H3 tags not closed I want to remove. I try to use search / replace, but it doesn't seem to be able to find non closed tags.

    In the excerpt below, I want to remove or delete the H3 tag:

    < /ul >

    < /li >

    < h3 class = "best_SubCategory_Title" id = "455474Title" >

    Best sedan

    < ul class = "ssMatchup_Entries" id = "Matchup455474Entries" >

    < /Li > < li > agreement

    Camry < li > < /li >

    Mazda 6 < /li > < li >

    Passat < li > < /li >

    < /ul >

    I tried different ways, but Dreamweaver search / replace engine can't not find invalid or cavities not blocked tags?

    Here are a few things that I tried, and as you can see, Dreamweaver cannot find the H3 tag:

    Screen Shot 2016-01-21 at 11.18.39 AM.png

    Screen Shot 2016-01-21 at 11.19.47 AM.png

    If I close it manually one of the H3 tags, and then find and replace can find. I think I can use regular expressions to do this, but I need to understand this too, if that's the only way.

    What do you think? Any idea on how to get rid of 200 H3 tags not closed? Perhaps another application?

    Answered my own question, here is the solution:

    For some reason, Dreamweaver cannot find and replace invalid code, or at least it is not easy to do. My problem was that I had a H3 tag not closed and would not replace it. I had to first close the H3 tag, and then I could replace it.

    I did a find and replace the one sought a ">" followed by a lot of white space, like this:

    As my license to close the H3 tag, then I could easily find and replace all now closed H3 tags, like this:

  • Problems with find and replace

    The search and replace feature doesn't seem to work
    To do the test I copy the code in a php doc and paste it into the find and replace article and click on search all (his game as "active document" and "source code".
    The result is saying 'finished. not found in the current document. It's disconcerting, as I've used it before and its worked
    Ive tried to reload everything and still no luck.
    I really want to get this work I need to replace pieces of code at least a hundred pages and hard to change it in one fell swoop doesn't have to do it manually
    all the best Graham

    yhallas wrote:
    > Find and replace function doesn't seem to work
    > To do the test I copy the code in a php doc and paste it into the discovery and
    > replacement article and click on find all (his game as "active document" and "source
    > code'.
    > The result saying "finished. not found in the current document. It's confusing
    > as I've used it before and its worked

    Make sure regular expressions use are not checked.

    --
    Adobe Community Expert David Powers
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Find and replace text with formatted text.

    I am trying to replace the text ' ^ 2 ' with '2' on photoshop by a search and replace, because there are many cases that on my image, but I can't seem to access any feature in photoshop which can do a search and replace for anything other than simple text. Is there a css solution, or a plugin that would allow me to do this? I have not sought on anything either on google search, although I will update this thread if I find something

    Google found this discussion Forums Adobe with different versions of the script.  I don't know exactly what made the script, but maybe it would work.  You probably want to make a backup of your documents before you run it:

    Find and replace text in multiple files from Photoshop?

  • My regular Expression is not replaceing lines with &lt; br / &gt; in them

    Here is my problem

    It's my original Code:

    < class p 'x 3-subheading-1' = > DEGREE: Bachelor of Accountancy < br / > MAJOR: accounting < /p >

    I want to find and replace all instances of this class of subheading with this:

    < h3 > * < / h3 >

    This is what has worked for me for those without < br / >:

    Search for: class p 'x 3-subheading-1' = > ([^ <] *) < /p >

    Replace: < h3 >$ 1 < / h3 >

    Managed to figure out what that close work.

    To find:

    ([^<>
    ([^<>

    Replace:

    $1
    $2

    Depending on the number of
    You can add more

    To find:

    ([^<>
    ([^<>
    ([^<>

    Replace:

    $1
    $2
    $3

  • Find and replace support, several variables

    Hello world

    Im trying to find all of the URLS in my code that starts in a particular way, but have a number at the end, see the examples below

    < a href="/example/examplefolder/enquiry.asp?pid=123" >

    < a href="/example/examplefolder/enquiry.asp?pid=485" >

    < a href="/example/examplefolder/enquiry.asp?pid=284" >

    and replace them with a url, see the example below

    "< a href="/example/examplefolder/default.asp ">

    How can I use Dreamweaver find and replace to do this through my entire Web site?

    So far, I don't know how to find one thing and replace it with another, rather than find the variables and replacing them with something.

    Thanks for your help with this!

    To find and replace this model: underscoreNumberUnderscore:

    Find: _\d_

    Replace: the value that you want to use (if it's nothing, leave the field blank)

    In Options, select use regular expression.

    This assumes that the number is a single digit. If you have numbers that have single or multiple numbers, change the value to find this:

    _\d+_

  • Case-sensitive option in find and replace the chain

    Hello!

    Attached is my problem.

    I'm looking 'toto' in the 'toto + tototi' input string and replace 'toto' by 'A0 '.

    I want to "respect" the input search in order to get a string result: A0 + tototi

    Are there options allowing for case-sensitive option?

    BR,
    Vincent

    You use search and replace with Regular Expressions selected (the little asterisk icon).  \b represents a word boundary, basically the imaginary space between the character is a letter, number or underscore, and the other is not.  In other words, it is an assertion of width zero, which means that \b does not capture anything.

    For example: toto is toto, toto1, toto_1 etc.  toto\b matches the string 'toto' when it is followed by something that is not alphanumeric or underline, is why it will not match toto1 but will match toto + or 'toto '.

    Go to pcre.org for more information or follow the assistance detailed in LV I assumed you knew because you need to turn on Regular Expressions in S & are so I assumed that you had done.  You've probably done without being aware of what you were doing.

  • Find and replace the string function replaces line breaks when I only replaced spaces?

    I need to replace all instances of a space or a series of spaces to a line with commas (or tabs) multi string so I can throw in a worksheet.

    I use the regular expression [\s]+ and it works, but it is also to replace the end of lines (\r\n) too.

    How can I replace the spaces but leave the end of the lines intact?

    Right-click on the search string and to take '-' code display. Enter the space character (\s) correctly - you \\s right now.

  • Find and replace text

    Hello

    I need to find and replace the string below. can someone please help.

    I have a 9E20300349013 string

    If the second character is E or G, then I need strip of the first two charecters like 20300349013.  I tried like, but is there a better way to do this in a single sql statement.

    IF REGEXP_SUBSTR ('9E20300349013', ' [A - Z] +', 2, 1) = 'E' OR
    REGEXP_SUBSTR ('9E20300349013', ' [A - Z] +', 2, 1) = 'G' THEN
    --
    VAR_PCN_SCRUBBED: = REGEXP_SUBSTR ('9E20300349013', ' [0-9] +', 1, 2);
    --
    END IF;

    IF SUBSTR ('9E20300349013', 2, 1) = 'E' OR
    SUBSTR ('9E20300349013', 2, 1) = 'G' THEN
    --
    VAR_PCN_SCRUBBED: = SUBSTR('9E20300349013',3);
    --
    END IF;

    Hello

    As Nick suggested, you can use only 1 operation instead of 2 = operations.

    Instead of IF, you can use CASES.

    Using regular expressions, you can also search for 'E' or 'G' at the same time, like this:

    var_pcn_scrubbed: = REGEXP_REPLACE ('9E20300349013'

    , '^. [EG] (.*)'

    , '\1'

    );

  • The powerful ' find and replace ' features are missing pages

    It would be good if the development team of Pages read the questions and the problems posted on the apple Support communities.

    Find and replace invisible characters (tabs, returns, etc.) have disappeared in the Pages for older versions.

    Other researchers suggest that the functions are in the NON Apple software. Duh. TextEdit not more and not pages. Disappointing, can not describe the feeling.

    The new Apple:

    "He Just (not!). Work' and 'where's the Hell... ».

    There is that one thing I use 5 Pages for: drawing, which can be fun in its limits. As a designer, I like he is aligned with the alignment that makes things very fast for me. Unfortunately, other sucks.

    Pages ' 09 is pretty horrible at drawing but great for the layout and productivity. The contrast between the two is remarkable, when I switch between them. If only I could have 5 Pages, in Pages ' 09 drawing tools, I could happily mix 5 Pages completely and be totally unaware of anything that does not work or works so badly she may as well not exist.

    2016 is coming with the editor of affinity, I hope it turns out as well as the designer of the affinity and Photo of affinity, but doubt that it will be the combination of WP, PAO and spreadsheet that makes Pages ' 09 so awesome to work with.

    Peter

  • Find and replace

    Hi all

    One of my colleague working on a program with more than 100 cases of the same enum (without type def as a constant knot, of control and property).  It must update the enum (surprise), so he needs to make the change on all the enum 100 +.  I showed him how to do a type-def, and he could replace the 100 + with new enum type FED.  It's a lot of work manually, so I tried to use search and replace, but it won't let me choose the new enum type-def we want to replace the enum 100 + with.  If I do find and replace, I can exclude the property node?  If I, the field node would get linke for the new enum?

    What is the best way to accomplish this task?

    jyang72211 wrote:

    1. I was able to find all the constant enum and replace them with something else.  Is it true that I can replace only with similar data type?  For example, I can't replace a constant enum with an add function.  I tried to change the enum to the ring to digital and numeric Enum.  They worked, but sometimes there is a glitch, where I have to find me and replace twice to make it work.  Have you seen this before?

    Yes, there are replacements that don't work because they are not simply doesn't make sense.

    2. I was able to easily find the enum constant, but for controls of the enum, I needed to go under others-> terminal façade.  I found the controls, but there is a slash sign beside him.  I assumed that meant cannot be operated.  I tried to replace the enum with some other control, and I can't.  How do you do search and replace on a control of enum (not constant).

    The search and replace has some limitations, and you met a. You can do what you want to do by the script. See attached example, which replaces the controls that have a label that starts with 'cc' with the typedef. The criteria for which controls replace yours. I just chose that according the example VI that you have provided. Modify if needed.

  • Find and replace variables

    Hello world

    Setup

    I have a line that connects two cycles in two different VI.

    The vi share the queue by a reference.

    Now that I changed the format of the queue of the enum element to a cluster of enum and date

    my queue reference has changed as well.

    Question

    How to replace (rebind) all variable instances of variables of refnum "old_queue" with "new_queue" refnum queue queued?

    What I tried

    I tried to use 'Find and replace' but it doesn't let me do: in text mode, it displays an icon crossed close to all

    He found bodies, and in graphic mode, that is not has such an option, as substitute a variable refnum.

    First: a lesson for next time. Check the data type of the queue a typedef. Now, the problem goes away. Change the typedef and all references.

    Lesson for next time bonus do not transmit queue around references. It is not necessary. Queues can be appointed. For another reference to the same queue, all what you need to know is its name.

    To answer your basic question, you can't. You'll just have to follow the wires around and replace them manually.

    Mike...

  • Ideas: I get the 0x80073AFC error code when I try to use the system restore then, how can I find and replace this file missing MUI?

    Remember - this is a public forum so never post private information such as numbers of mail or telephone!

    Ideas: I get the 0x80073AFC error code when I try to use the system restore then, how can I find and replace this file missing MUI?

    • I am running Windows 7 for packs SP 1 or SP 2 does NOT solve my problem since neither one works with Windows 7.  Is there a way to search for this MUI (Multiple User Interface) missing file? The every thing must have himself installed in the first place. I took my mom (she died in June) and my brother on this PC as users so even if they do not use this PC supports multiple users. Maybe if I deleted as a reboot and additional users it will solve my problems. My updates install OK but I can't run at all system restore. It creates a restoration point OK but when I try to sr back to a restore point before I get the error 0x80073AFC topic of the missing MUI file. Then, when I spear SR it is said that he could not and no files have been changed because of the error 0x8000FFFF error, unspecified catastrophic failure and could not retrieve the file several times when system restore is attempted.

      I'm running Windows 7 on a HP Pavilion with browser Firefox 3.6.8 browser Opera 10.60, IE8 and Google Chrome 5.0.375.125 browser browser.

      Can you tell me what I try next? Thnks a lot and sayonara for now the guy-Jack McElwee / keimanzero the Scion of the Anime in Brookhaven PA - USA

      OK I tried everything and nothing works! Only added beginners are updated browser Opera 10.63; IE9 (Beta); Firefox 3.6.12 and Google Chrome 7.0.517.41 and Java 22. Of course like everyone else in the world, I had to uninstall/enable and disable/download again and reinstall new Adobe Flash 10 and 11 of the shock wave and they keep crashing too! Hello 4 keep screwing browsers and now I get connection network problems. I run Comcast doctor and did everything it said to do, but nothing works. Oh and I added 7-Zip and WinZip also. Likewise, they will not work! Help! Thanks - K & K

    keimanzero,

    Comcast of Norton Security Suite version is installed? If Yes, who and perhaps malware is most likely to cause questions you have published, in particular the failure of the restoration of the system.
    First, configure the system to boot - How to solve a problem by performing a boot in Windows Vista or in Windows 7
    NOTE: Start-up mode minimum state all the 3rd party firewalls will be disabled. Open Control Panel > Windows Firewall to make sure that the native firewall of Windows 7 is now on.

    Download and Save the update system (or CheckSUR) tool. You will need to download the specific Version of CheckSUR corresponding to the architecture of the system to Windows 7. If you do not know the architecture of the system, and then click the link that says "Click here to show or hide the instructions step by step with images" under method 2: download the update directly system preparation tool from Microsoft Download Center .
    Description of the preparation tool system update for Windows Vista for Windows Server 2008, for Windows 7 and for Windows Server 2008 R2

    Once the download is complete, close all open programs and browsers. Now, run CheckSUR with the system connected to the internet because it will download the .cab for system files. Reboot once CheckSUR is complete.

    Secondly, I suggest that you run the File Checker system while in the same clean boot state.
    To run the System File Checker tool, follow these steps:

    1. Click Start and type cmd in the field search programs and files .
    2. Right click on cmd.exe in the programs of list, and then choose 'run as administrator '.
      If you are prompted for an administrator password or a confirmation, type your password or click on continue.
    3. At the command prompt, enter the following line exactly as written including the space between thec and the/and then press ENTER:
      sfc/scannow

    When the analysis is complete, test to see if the problems facing the system have been resolved.

    If they are not, you will need to contact Norton support for the version of Norton Internet Security Comcast to get help, or just uninstall NIS, run the Norton removal tool (right click Norton_Removal_Tool.exe, choose "Run as Administrator"), reboot and then check to see if the problems are still occurring.

    Expert MowGreen Windows IT Pro - consumer safety

Maybe you are looking for