Need to separate the line using regexp_replace, when there is no string "< BR >".

Hello

This is the first time I post on this forum.  Currently I have some data in a column, for example:

AMF PICK STITCHING 1/16 < BR > NO CUSTOM IMITATION BTNHOLE < BR > < BR > TAG

What I want to do is to divide it when it hits < BR > he actually makes a new line and removes the < BR >, so it should eventually appear as follows:

AMF PICK STITCH 1/16

NO IMITATION BTNHOLE

CUSTOM LABEL


I have the following, but it does not work:


with the trial as

(select 'AMF PICK STITCH 1/16 < BR > No. IMITATION BTNHOLE < BR > LABEL PERSONALIZED < BR > ' double str)

)

Select regexp_substr (str, ' [^ < BR >] +', 1, rownum) alteration

of the test

connect by level < = length (regexp_replace (str, ' [^ < BR >] + "")) + 1

I am currently on Oracle 11 g and PL/SQL developer coding.

It is not quite clear what you want.

Either you want 3 lines or a line with 3 breaks.

[^
] May not be what you want it to be.

It defines a list of characters is not a match.

Thus, each <,>, B, R, would be a step match independently as part of the
.

What you might try is:

Select regexp_substr (str '(.*?)
1, level, null, 1) alteration

of the test

connect by level<= regexp_count="" (str,="">
')

If you want 3 ranks as the result.

Tags: Database

Similar Questions

  • I need to number the lines of my page document for the presentation of the journal. Help, please!

    I need to number the lines of a document to be submitted to a journal. I can make a section in the document, but I can't find a command, and then add the line numbers.

    Hi Misha,.

    3 pages includes number of words to display as a menu item in the view menu:

    The County appears at the bottom left of the page and it shows more options when you click on it. Unfortunately, "number of lines" is not included in the available options:

    If you had ' 09 Pages on your Mac and did not intentionally removed it when you installed 5 Pages, it will always be there, in a folder named iWork ' 09, in your Applications folder.

    Copy your document, open the Pages ' 09 and paste the contents of your document into a word processor new document in Pages ' 09.

    Check that the end of the document is delivered on the same page (number) and to the same position on this page as in the original and making small changes at the margin to adjust it if necessary.

    Then go to edit > tools > statistics to see this more comprehensive report:

    Note that if you need to present the newspaper article in one format other than a file of Pages, the number of rows may change due to changes in the conversion to the new format of formatting.

    If you don't have a Pages ' 09, you can get a number of lines using tools > line numbers in OpenOffice or LibreOfficeApache. Both are applications open source, free to download and use (even if you might donate help the future evolution of the demand). The links will take you to their respective Web sites.

    Oh... One more thing (as long as Steve jobs used to say sometimes): pages (3), go (menu) Pages > provide pages of comments and make a feature request so that the line count (and line numbering) added the capability of 3 Pages.

    Kind regards

    Barry

  • I need to change the background image often when running

    any body help me,.

    I need to change the background image often when running

    concerning

    welcan

    Hello

    You can also use effects rather than a timer, much more enjoyable... following example moves between a series of embedded images.

    David.

    http://gumbo.flashhub.NET/menu/ source included

  • You need to unplug the 10 pro printer when you print not for days or weeks?

    You need to unplug the 10 pro printer when you print not for days or weeks?

    ebiggs1

    Thanks for your reply.

  • What is needed to download the software using Adobe Download Assistant?

    What is needed to download the software using Adobe Download Assistant?

    Adobe Download Assistant mainly use Adobe AIR.  This allows him to run as its own program instead of requiring the use of a web browser.  Adobe AIR is cross-platform and is currently compatible with Mac OS, Windows XP, Windows Vista and Windows 7.

    Click here for more information on Adobe AIR.

  • Why was the full Inbox folder when there is no message in the folder of outlook express?

    Original title: failure of Outlook Express

    I apologize if I am in the wrong category, but there isn't one for Outlook Express. I encountered a strange problem with OE. My client always uses OE for their emails and all of a sudden a person has lost the ability to receive emails. After some research, I found that their Inbox.dbx file exceeded the capacity of 2 GB. Juggling which corrects the problem.

    But my question is why was the folder Inbox full, when there is no message in the folder? When I opened the OE to try to resolve the problem, the Inbox was empty! Second question is how can I keep this does not happen?

    [Transferred from Internet Explorer]

     
    I do not use Outlook, but it has nothing to do with archiving. Only, you do not see messages once you remove them, but they are still on your drive hard until you compact.
     
  • Cannot check iOS 9.3 during the upgrade process. When there is a good connection internet, says no internet. Tried more than 30 times, even after reboot. Any suggestions?

    Cannot check iOS 9.3 during the upgrade process. When there is a good connection internet, says no internet. Tried more than 30 times, even after reboot. Any suggestions?

    You chose the option in iTunes to download the firmware first and install it in a second time after that?

  • Why do I get an error messege saying that you run lack of disk space on the HP-TOOLS (E :) when there is nothing there?

    Why do I get an error messege saying that you run lack of disk space on the HP-TOOLS (E :) when there is nothing there?   Have cleaned the disc and it shows 0 items

    Original title: HP-TOOLS

    The HP tools partition reports nothing because the files are hidden.

    If you have something to E, out soon. After moving, the "running out of disk space" message stops...

  • Need to draw the line &amp; bargraph on Blackberry using JDE 4.7

    Hello

    I need to draw a line and a graphic barcode using JDE 4.7.

    can someone help me find the starting point.

    Thanks in advance.

    The forum search will often provide an answer.

    http://supportforums.BlackBerry.com/T5/Java-development/how-implements-a-chart-on-BlackBerry/m-p/465...

  • How can I change the width of the line that appears when using the distance tool in the toolbar meaasuring

    When I want to measure the distance of a line of architectural drawing and I scroll to the bottom of the toolbar to measure and then I select distance when I measure the distance line is about 24 points. How can I make thinner?

    You should be able to view the properties bar (cmd + E), select the annotation of measure and change the line with setting. If you click on the button 'More', you will be able to select the checkbox 'Use default properties' so any new measure you will have these new settings.

  • need help to get the desired outcome of the SQL using REGEXP_REPLACE

    Hi all

    I have following query column values.

    Select (1-4, 8-9, 7, 11-13') twice;

    Here, I need to replace the '-' in the sequence number, as shown in the below expected o/p.

    Expected results

    -------------------------

    1,2,3,4,8,9,7,11,12,13

    Hello

    dbaKrish wrote:

    Hi all

    I have following query column values.

    Select (1-4, 8-9, 7, 11-13') twice;

    Here, I need to replace the '-' in the sequence number, as shown in the below expected o/p.

    Expected results

    -------------------------

    1,2,3,4,8,9,7,11,12,13

    Its one-way:

    WITH got_str AS

    (

    SELECT ' 1-4, 8-9, 7, 11-13' STR

    OF the double

    )

    got_comma_delimited_parts AS

    (

    SELECT LEVEL AS part_num

    REGEXP_SUBSTR (str,

    , '[^,]+'

    1

    LEVEL

    ) IN the framework

    OF got_str

    CONNECT BY LEVEL<= regexp_count="" (="">

    , '[^,]+'

    )

    )

    got_nums AS

    (

    SELECT part_num

    TO_NUMBER (REGEXP_SUBSTR (part

    , '\d+'

    )

    ) AS low_num

    TO_NUMBER (REGEXP_SUBSTR (part

    , '\d+$'

    )

    ) AS high_num

    OF got_comma_delimited_parts

    )

    got_max_range AS

    (

    SELECT MAX (high_num - low_num) AS max_range

    OF got_nums

    )

    AS cntr

    (

    SELECT the LEVEL - 1 AS n

    OF got_max_range

    CONNECT BY LEVEL<= max_range="" +="">

    )

    SELECT (n.low_num + c.n LISTAGG

    , ','

    ) (ORDER BY n.part_num group

    ,         c.n

    ), Exit

    OF got_nums n

    CNTR JOIN c ON c.n<= n.high_num="" -="">

    ORDER BY part_num

    ;

    This assumes that each part separated by commas composed entirely unsigned integerss, or exactly 2 integers separated by a hyphen and the integer before the dash is not that the whole greateer after the hyphen.  If you can not be sure of these things, you will need to change the query slightly to check and handle exceptions.

  • Illustrator CC 2015, need to draw the line after line with arrowhead already attached.

    CorelDesigner has an option where you just draw your line / lines and arrow is already added at the end of the line.  Not only that your arrow lines can have a color outside the line (which surround it). So if you make a technical with arrows pattern when placed on top the drawing there is white or what ever color you want outside the black line (what thickness you choose so) so it's easier to read the technical drawing. So, basically, it's not line against line. That's why you would put a little white around the line. He gives him the space to breathe and easier to read the technical drawing. In Illustrator, I find that I draw my line. Then hover over the line options palette, and then scroll down arrow heads and choose my arrow head. Then calculate the rest, make outside the line have a white that surrounds it. Thus, it can be placed on technical drawings. I find there are many steps I have to do when Corel has this feature built-in and you leave. I currently have a trial version of Corel. But... I already have Adobe Suite. I don't want to have to buy another program. But I also see that CorelDesigner is somehow more user-friendly for people who need to work with drawings technical line (writing). I understand that not every program offers the same tools. But I really need the speed of it because I work with a lot of technical CAD which are handed to me. If there is a way in Illustrator to draw my lines one after the other with the arrow head already attached? Then of course I need little white around it if its duplication on other technical lines.  It just seems like a lot of steps in Illustrator. I also understand I could draw a line w/arrow attached installer as I want. Then draw another line... use the eyedropper tool and click on the correct line and my other line with change. Once more... what a pain. I feel that I have to jump through hoops to get my final result. I hope so that there's something built in Illustrator, I did not know was there and just unnoticed.

    Yes, I was able to do, but this is delicate (buggy) to get there.

    Make sure that the two traits have identical points of arrows and line widths.

    After you have created your effect of offset on long-distance running, move the effect of shifting way somewhere else in the stack, and then put back where it was. This seems to be the only way to make it work. Weird.

  • Need to separate the headphones of speakers on x 51 but does not open realtek, only audio alienware

    Basically, I need to open the Realtek program, but it seems to be more written by alienware audio because it is in my list of installed programs, however, when I try to open it, the only option I get is to uninstall it, after watching a few videos of how find and open the ect, it seems that the audio alienware is instead the realtek program.

    I am wanting to split the sound from my headphones and speakers as currently it comes out both when I want music on my speakers and Skype through my headphones. I know that realtek has an option for what you can do two different audio channels. Earlier when I plug my headphones, it records under involved as well and not a separate playback device. Audio Alienware does not have this option and as I said, Realtek won't open.

    If anyone knows how to get Realtek to open or has a work around fix I would be grateful, thanks in advance.

    It looks like your drivers are twisted. Others have reported similar problems. I don't have this machine. If you solve this problem and use your analogue headset, try uninstalling all audio drivers (and their audio control panels) and try to install the appropriate drivers. Maybe even leave the Windows driver load.

    But you know what would be the easiest?

    Buy a cheap USB for Skype headset. It will use the "sound card" in the headphones. In addition, it is digital for all.

    http://www.Amazon.com/Plantronics-GameCom-780-headset-surround/DP/B00B1KJK22/ref=sr_1_1?ie=UTF8&QID=1424380477&SR=8-1&keywords=Plantronics+gaming+USB

    or

    http://www.Amazon.com/Logitech-Clearchat-comfort-headset-black/DP/B000UXZQ42/ref=pd_sim_e_5?ie=UTF8&refRID=0J0H506KN8KF79G8NA4A

    EDITED: Oops, this other helmet was analog. These are the two digital USB with its built-in card circuits. Corrected message.

  • I need to make the bookmarks bar visible when I start firefox

    I use the mozilla.cfg file

    defaultPref ("dom.disable_window_open_feature.directories", true);
    defaultPref ("dom.disable_window_open_feature.personalbar", true);

    I need something like this to use to make the bookmarks bar when I run firefox

    It is one of the persistent settings that are stored in the file localstore.rdf.

  • Need to separate the query

    Hi all

    I have the below where all the WITH clause needs to separate query and SELECT article queries must be separated. Any help is very appreciated. Try SUBSTR and INSTR.

    SQL query:

    ######################################################################

    WITH

    test_does1 like)

    Select 'Y' in double

    )

    Select *.

    of test_does1

    UNION ALL

    SELECT 'X' FROM double

    UNION ALL

    SELECT 'A' FROM dual

    UNION ALL

    WITH

    test_does2 like)

    Select 'Y' in double

    )

    Select *.

    of test_does2

    ######################################################################

    OK... Then try the below (LISTAGG will not work in oracle 10g)

    -Separate with clause

    SELECT DBMS_XMLGEN. CONVERT (RTRIM (XMLAGG (XMLELEMENT (E, str |)))) "UNION ALL"). " (Extract ('//Text ()')), 'UNION ALL'), 1) lsval

    FROM (SELECT LEVEL, LTRIM (REPLACE (REGEXP_SUBSTR(str1,'[^,]+',1,LEVEL), CHR (10))) str)

    FROM (SELECT REPLACE (' WITH test_does1 AS))

    (SELECT "Y" FROM dual)

    )

    SELECT * from test_does1

    UNION ALL

    SELECT "X" FROM dual

    UNION ALL

    SELECT "A" dual FROM

    UNION ALL

    WITH test_does2 AS

    (SELECT "Y" FROM dual)

    )

    SELECT * FROM test_does2 ',' UNION ALL ',',') str1

    THE DOUBLE)

    CONNECT BY LEVEL<= length(regexp_replace(str1,="" '[^,]+'))="">

    WHERE the str AS "WITH % ';

    -Select to separate

    SELECT DBMS_XMLGEN. CONVERT (RTRIM (XMLAGG (XMLELEMENT (E, str |)))) "UNION ALL"). " (Extract ('//Text ()')), 'UNION ALL'), 1) lsval

    FROM (SELECT LEVEL, LTRIM (REPLACE (REGEXP_SUBSTR(str1,'[^,]+',1,LEVEL), CHR (10))) str)

    FROM (SELECT REPLACE (' WITH test_does1 AS))

    (SELECT "Y" FROM dual)

    )

    SELECT * from test_does1

    UNION ALL

    SELECT "X" FROM dual

    UNION ALL

    SELECT "A" dual FROM

    UNION ALL

    WITH test_does2 AS

    (SELECT "Y" FROM dual)

    )

    SELECT * FROM test_does2 ',' UNION ALL ',',') str1

    THE DOUBLE)

    CONNECT BY LEVEL<= length(regexp_replace(str1,="" '[^,]+'))="">

    WHERE str AS 'CHOOSE % ';

    -Unit tests

    SQL > SELECT DBMS_XMLGEN. CONVERT (RTRIM (XMLAGG (XMLELEMENT (E, str |)))) "UNION ALL"). " (Extract ('//Text ()')), 'UNION ALL'), 1) lsval

    2 FROM (SELECT LEVEL, LTRIM (REPLACE (REGEXP_SUBSTR(str1,'[^,]+',1,LEVEL), CHR (10))) str)

    3 (SELECT REPLACE (' WITH test_does1 AS))

    4 (SELECT "Y" FROM dual)

    5    )

    6. SELECT * FROM test_does1

    7 UNION ALL

    8 "X" SELECT FROM dual

    9 UNION ALL

    10. SELECT "A" dual FROM

    11 UNION ALL

    12 test_does2 WITH AS

    13 (SELECT "Y" FROM dual)

    14)

    15 SELECT * FROM test_does2 ',' UNION ALL ',',') str1

    16 DOUBLE)

    17 CONNECT BY LEVEL<= length(regexp_replace(str1,="" '[^,]+'))="">

    18. WHERE LIKE str "WITH % ';

    LSVAL

    --------------------------------------------------------------------------------

    WITH test_does1 AS (SELECT FROM dual 'Y') SELECT * FROM test_does1 UNION ALL

    WITH test_does2 AS (SELECT FROM dual 'Y') SELECT * FROM test_does2

    SQL > SELECT DBMS_XMLGEN. CONVERT (RTRIM (XMLAGG (XMLELEMENT (E, str |)))) "UNION ALL"). " (Extract ('//Text ()')), 'UNION ALL'), 1) lsval

    2 FROM (SELECT LEVEL, LTRIM (REPLACE (REGEXP_SUBSTR(str1,'[^,]+',1,LEVEL), CHR (10))) str)

    3 (SELECT REPLACE (' WITH test_does1 AS))

    4 (SELECT "Y" FROM dual)

    5    )

    6. SELECT * FROM test_does1

    7 UNION ALL

    8 "X" SELECT FROM dual

    9 UNION ALL

    10. SELECT "A" dual FROM

    11 UNION ALL

    12 test_does2 WITH AS

    13 (SELECT "Y" FROM dual)

    14)

    15 SELECT * FROM test_does2 ',' UNION ALL ',',') str1

    16 DOUBLE)

    17 CONNECT BY LEVEL<= length(regexp_replace(str1,="" '[^,]+'))="">

    18. WHERE str LIKE "SELECT % ';

    LSVAL

    --------------------------------------------------------------------------------

    SELECT 'X' FROM dual UNION ALL SELECT 'A' double

Maybe you are looking for