A function or way to identify a word before any char

Hi All,
I am looking for a way to identify the FIRST word BEFORE any specific character. For example :
I have a string: "This *day*, of OCT *is*, very *Sunny*, "
I want know if there is a function or a logic to identify just the FIRST word before ',' (here ',' is the specific character).
So the solution would be: "day is Sunny"
Kindly let me know.
Thank you,
Aj09

Hi,
This sounds like a job for regular expressions.
REPLACE ( REGEXP_REPLACE ( txt
                  , '[^, ]+'     -- anything that's not a comma or space (1 or more)
                    || '( |$)'     -- right before a space (or end)
     )I assume a "word" is any group of one or more characters that does not include a comma or space.
If other punctuation characters( like '.' and ')') delimit words, then this will have to be adjusted.
The REGEXP_REPLACE removes all words that do not end in a comma. The comma at the end of each word kept is part of the results.
Since you don't want the commas in the output, I used REPLACE to get rid of them.

Similar Messages

  • Way to identify if a number is a prime in Labview?

    I need a
    way to identify if a number is a prime. Are there any inbuilt functions such as the
    matlab Boolean “isprime(X)” or a simple way to use matlab with labview?

    if you have LabVIEW 8.0 or later, you can use a simple Mathscript node. No need for matlab.
    Here are two possible implementation examples:
    Message Edited by altenbach on 12-17-2006 09:24 AM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    isprimeScalar.png ‏13 KB
    isprimeArray.png ‏19 KB

  • Is there any way to identify the particular socket connection is closed ?

    Is there any way to identify the particular socket connection is closed or not ?
    Any methods ???
    How can the program knows the connection is lost or some thing ...
    Is the socket throws some excpetions when there is no active connection ???
    namanc

    If you get an IOException when you try to use the socket, the connection was obviously closed.
    The correct way for an application to know if the socket was closed is:
    1) the server sends a message indicating that the socket should be closed
    2) the client closes the socket itself

  • What is the best way to work with Word documents in The InDesign CS4???

    I work in Microsoft Word 2007 and all my documents have *.doc format.
    What is the best way to work with Word documents in InDesign CS4???
    David Blatner says to avoid copying and pasting text from Word instead of placing it (Ctrl+D).
    How about pasting RTF or Text Document???
    I want to make book's layout in ID CS4 and its main feature is that there is the left page with text and the right - with graphics.
    So, as I understand to place the text on each page I must create for example 70 Word documents and place each item on 70 left pages???
    It loks like wasting time. I sthere another way of making such layout???  What kind????

    It's best to place any text.
    You can have all of your text in one file and use auto-flow to add threaded text frames and pages as required (Hold down the Shift key when you click the loaded text cursor), but it's a little non-standard to have the thread only on one side of the spread from the auto-flow perspective, so you'll have to set up properly.
    This is one case where a master text frame will work to your advantage. On your master page spread, add a text frame to the left page, but not to the right (or at least not threaded to one on the right -- for some other project you might actually want two independent text threads). Hold the loaded cursor over a frame on the left side of a document page and auto-flow. ID will add new spreads as necessary, but only put the text on the left side.
    Peter

  • Is there a way to add/delete words from the predictive text ?

    Is there a way to add/delete words from the predictive text options that my iPhone is giving me? I'm using an iPhone 6 Plus with iOS 8.
    There are specific words that are popping up in the area right above the keyboard where it displays 3 word suggestions to choose from. This area seems to suggest words that I have typed before, I'd like to remove these words. Default seems to select the word in the center and when I'm typing fast on occasion it will recommend and select words that I don't need to use.
    Any help would be appreciated.

    999753 wrote:
    I know in 10g delete is added but in 9i i can only work with UPSERT( update, insert)
    is there a way to add delete into 9i MERGE? or somehow encapsulate it?
    Thank youI would suggest upgrading to a supported version of the database. 9i has been unsupported for many many years now.
    And to answer your question... to the best of my knowledge, there is no workaround. It works as it works.

  • Hello,is there a way to make a word processing document in pages with 1" margins because at the top of page it has more than 1", and can the box at the top be deleted

    hello, is there a way to make a word processing document in pages with !" inch margins? i ask this because there is a box where you can write text and the you start your document, but it takes more than 1 inch from the top, can that box be removed? and why whatever you write in the box appears in every page of the paper? is there a way to avoid this? sorry I do not use computers very often and i just want to write an essay for my english clss, thanks for your help.

    The box is called Headers and is used for thing that will be repeated on several pages like page numbering and names etc.. You can uncheck it in the Inspector > Document tab

  • Is there a way of locking a word document in ios mountain lion so that it cant be printed or changed?

    Is there a way of locking a word document in mountain lion so it cant be printed or changed?

    You can print because it's your document. Others shouldn't be able to. But then it's easy enough to unlock them altogether.
    Easiest is to get encryption software and just encrypt the document. Or create a small encrypted disc image with Disk Utility and store the document in the disc image.

  • Is there a way to select a word in a pdf form and have it circled

    is there a way to select a word in a pdf form and have it circled instead of say check marked

    https://discussions.apple.com/community/professional_applications/final_cut_stud io
    Al

  • Best way to import Microsoft Word text?

    Newbie question. I've been importing Microsoft Word text just using the clipboard. That is, I'll open Microsoft Word, open my document, select all, copy, and then go to InDesign and paste. InDesign gives me a text block with my text and I just re-size the columns. The text comes in all weird and I have to stylize it, of course. Sometimes I get some junk like nonbreaking characters and other hidden characters which screw me up until I figure out what's going on. My question is: what's the best way to import Microsoft Word text that will introduce the fewest errors? Thanks.

    JoJo Jenkins wrote:
    Whooops...posted in the wrong forum...sorry!
    Don't worry, it happens all the time. 

  • Is there a way to identify other users on my WiFi?

    Is there a way to identify other users on my WiFi?

    Open AirPort Utility (Applications/Utilities) and click on your AirPort. It should list all the wireless devices connected.

  • The previous version of Itunes had a function where I could identify duplicate songs in my iTUNES library.  I cannot find this function in the new version of iTUNES.

    The previous version of Itunes had a function where I could identify duplicate songs in my iTUNES library.  I cannot find this function in the new version of iTUNES.
    Please advise where this is in the new version?

    The show duplicates/show exact duplicates features have been left out of iTunes 11. Rumor suggests they will be restored in the next build. In the meantime I have written two Windows scripts to make playlists of Duplicates and Exact Duplicates, either from a selection of tracks or the entire library.
    If you want to manually remove duplicate tracks use shift-delete to remove selected tracks from the library as well as the playlist. Keep one of each repeated group of files and don't send to the recycle bin unless you are sure that there are multiple files on the disc as opposed to multiple entries to the same file.
    There is also my DeDuper script if you don't want to do it by hand. This can preserve ratings, play counts, playlist membership, etc. which are lost in a manual clean up. Please take note of the warning to backup your library before deduping. See this thread for background on deduping and the script.
    tt2

  • Any way to identify emails that were open when Mail crashed?

    Admittedly, I probably had too many emails sitting open (plus a bunch of open tabs in 3 different browsers).
    Mail crashes, and I Force Quit.
    When I reopen mail, a few emails do repoen, but the majority do not.
    Is there any way of identifying which emails were open at crash time? It's sort of my to-do list. Admittedly, not the best way to go.
    I'm on 10.6.8 Snow Leopard, MacBook Pro mid-2010.
    Thanks,

    - Transfer iTune purchases by:
    iTunes Store: Transferring purchases from your iPhone, iPad, or iPod to a computer
    - Transfer other music by using a third-party program such as one of thos discussed here:
    Copy music from Ipod to new computer...: Apple Support Communities
    If you are in the USA, you can redownload mos tiTunes purchases viua iCloud beta by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • Is there a way to identify MRP requisitions transfered to SRM?

    Hello experts,
    We are using SRM 5.0 connected to an ECC 6.0 backend system, using ECS scenario.
    I have the following question:
    Is there a way to identify in SRM requisitions transtered from ECC that are created in R3 from an MRP process? Meaning like an indicator or a flag in a table in SRM?
    Thanks!
    Regards,
    Gilberto Gallardo

    Hi
    <u>Please go through the SAP OSS Notes below as well -></u>
    Note 451245 Framework conditions connection MRP <-> EBP
    Note 505030 Restrictions for the integration of external requirements
    Note 441892 Integrating external requirements
    Note 831348 Source List for Stock requirments and MRP list -wong results
    Note 528808 Incorrect item numbers during the update (add items)
    Note 540339 Purchase requisitions are transferred incorrectly
    Note 534419 Transfer of purchase requisitions into the procuremnt system
    Note 532293 Fulfillment: incorrect quantity for activities and limits
    Note 447516 Composite SAP note PlugIn Correction for External Requiremts
    Hope this will help.
    Regards
    - Atul

  • In other words is any way bring back old data itunes kept in PC(was vista- crashed- now win7)...

    As stated briefly:
    My PC crashed
    I have all files but cannot run os vista was
    to run itunes in a new win7 pc with prior data: I must connect ipad and synchr (but this says This device (IPAD 1) synchr with another Library go and delete data and replace with current lib?)
    or exist other way use old data(Old hdd) of itunes in old PC to new itunes new pc??? so avoid deletion...
    in other words is any way bring back old data itunes kept in PC(was vista->crashed->now win7)...?

    If you want to transfer to a new computer here is the way-
    1. Without connecting your iPad to your new computer -
    A) Install iTunes / make sure the latest version of iTunes is installed.
    B) Go to the Store tab and click on "Authorise This Computer".
    C) Go to Edit, click on Preferences and click on Devices. Put a check mark in the box next to "Prevent  iPods/iPhones/iPads from syncing automatically". Click OK and close iTunes.
    2.  Connect your iPad to your computer -
    A) Start iTunes (if it does not do so automatically).
    B) Right click on your iPad under Devices in the left column. Select "Transfer purchases".
    C) When the transfer has completed, right click on your iPad again and select "Backup".
    D) When the backup has completed, left click on your iPad, click on the Apps tab, and put a check mark in the box next to "Sync Apps", and then click on "Apply" (bottom right).
    E) Unless you want to always do a manual sync (as I do), go back to Edit, Preferences and uncheck the box next to "Prevent your iPod.....".
    F) Finally, on your iPad, check that everything is syncing properly. If not, go back to iTunes and check all settings.
    NB You should not lose any apps. However, any 'purchased' missing apps can be downloaded again FOC. As with updates, this must be done with the Apple ID under which they were originally 'purchased'.
    Also see here as to moving your music to your new computer -
    http://support.apple.com/kb/HT4527

  • Function module / way to know Activated customer exits in the system

    Dear all,
    How to know Function module / way to know Activated customer exits in the system.
    Regards,
    Purshoth

    Hi Purshoth, There is a table MODATTR In which you will get all the Customer Exits where Status = 'A'.
    for enhancements You can refer to table ENHHEADER table with version A and EnhName = z* or the name space which you use.
    Thank You,
    Regards,
    Swaroop Patri

Maybe you are looking for

  • How to create a PDF with clickable links for iPad?

    Hi, I need to create PDF files that contain hyperlinks which will work when opened on ipads.  I've tried several programs elsewhere but the hyperlinks do not work when clicked on ipad devices.  Does any of the Adobe software create hyperlinks that ar

  • Use Session Variable with row-wise initialization

    Hello, I use an initialization block in order to load some translations in my repository (version is 11.1.1.6.BP1) : SQL : SELECT CODE_KEY, STRING_VALUE FROM "TABLES" WHERE  LANGUAGE_KEY= 'VALUEOF(NQ_SESSION.USERLOCALE)' Values : CN_INCOMING, Incomin

  • Problem after installing OBIEE 11.1.1.5

    Hi, I installed obiee 11g on a windows server. But i dint use a service account,but installed it with another user account which had all admin privileages. Now, i logged into the server and All programs-->Oracle Business Intelligence --->start BI ser

  • Problem with system Inactivity/Idle time after installing Lion.

    Since installing Lion strange things have been happening. While I was happily editing a text file in TextMate and interacting with the Terminal, my screen saver started. I could only get rid of it by clicking on it, keyboard interaction didn't seem t

  • Creating users in a zone

    I have a zone created for FTP users I am trying to create home directories for individual users. I am using useradd command and /home/user-name as the home directory but there is no direcotry being created. The zone is created on a Veritas Volume. Wh