String coversion problem.{some conversion required}

Hello all.,
presently i am facing one problem with string handling.,
I have to convert one string to another ..,
e,g.,
Source String is : -
*36,1, KH GOPEEKRISHN*, F, KRISHN DAS, M,55, SOUTH YASHVANT GANJ XYZ XYZ,400002
Desired String:-
*36,1 KH, GOPEEKRISHN*, F, KRISHN DAS, M,55, SOUTH YASHVANT GANJ XYZ XYZ,400002
the bold one is important.,
In source string we have *,KH GOPEEKRISHN* and i have to convert it into this form KH, GOPEEKRISHN
-Thanks in advance.,
Praveen

Hi sabre,
Thanx for the reply.
But i dont know this concept of look behind, can u suggest me a link whr i can find info regarding this.
^\\d+ ----> this i understood .
But not this
?<=wat i know is
(?=abc) matches zero characters only if they are followed by the expression abc.
(?!abc) matches zero characters only if they are not followed by the expression abc.
correct me if im wrong
Edited by: Manthana on Jan 22, 2008 3:57 AM

Similar Messages

  • Problem with conversion of strings like THISStr - this_str capitalization

    Problem with conversion of strings like. THISStr -> this_str
    Can anybody pass on the reverse code. I have one, but its faulty.
    public static String convertFromPolycaps(String str) {
              Pattern pattern = Pattern.compile("\\p{Upper}+");
              Matcher matcher = pattern.matcher(str);
              StringBuffer result = new StringBuffer();
              // We do manual replacement so we can change case
              boolean notFirst = false;
              int grpP = 0, grpA = 0;
              String last = "";
              String now = "";
              while (matcher.find()) {
                   grpA = matcher.end();
                   if (notFirst) {
                        now = matcher.group().substring(0).toLowerCase();
                        if (grpA - grpP > 1) {
                             matcher.appendReplacement(result, now);
                             result =
                                  new StringBuffer(
                                       result.substring(0, (result.length() - 1))
                                            + "_"
                                            + result.substring(result.length() - 1));
                        } else {
                             matcher.appendReplacement(result, "_" + now);
                   } else {
                        matcher.appendReplacement(result, matcher.group().substring(0).toLowerCase());
                        notFirst = true;
                   grpP = matcher.end();
                   ////index++;
                   last = now;
              matcher.appendTail(result);
              System.err.println(str + " : " + result.toString());
              return result.toString();
         }succesfully converts :
    AccountNmnc : account_nmnc
    CustNameJ : cust_name_j
    Resume : resume
    BeneBrCode : bene_br_code
    ApprovedPerson : approved_person
    but fails for:
    GLCode : glcode
    VISHALErrCode : vishalerr_code
    GHASUNNAcNo : ghasunnac_no

    Can anybody pass on the reverse code. I have one, but
    its faulty.Post it, I'm sure we can fix it...

  • Download Helper on Mac error - Conversion requires external application??

    Hey guys,
    I'm looking for some help with the Download Manager extension on Mac for the Firefox internet browser... When I attempt to use Download Manager, I get a pop up error that states:
    Conversion requires an external application that appears to be missing on your system.
    Configure conversion? > Cancel > OK
    When I select OK, it opens the Preferences for Download Manager, highlighting in red the location path for the selected converter option, which is either:
    FFMpeg
    or
    MEncoder
    The path in the field next to the drop down selector for the above 2 options is highlighted in red... I'm assuming that means it's invalid?
    I'm not sure why this happened or what changed, because when I originally installed the Download Helper, it worked fine... I attempted to use it today and now it won't work.
    I'd appreciate any help you can offer! Thanks!

    Hey, I had the same problem and just solved it. Your path to the console video converter is incorrect or you don't have any of the two convectors program is looking for.
    Solutions: if you have one of these converters just type in the path. Tip: you can find you their path by typing it in spotlight or try write: "which aaa" in console line, where aaa is "meencoder" or "ffmpeg", that should return the path where they are located. If it doesn't then might that they are installed on your machine.
    Installing ffmpeg: download source file from this link: http://www.ffmpeg.org/releases/ffmpeg-0.5.tar.bz2 then open command line and write : cd and the absolute path to the file for example "cd /use/john/Desktop/ffmpeg". Then type in : "./configure && make && sudo make install" in the command line to compile the ffmpeg, after process finishes you have just to specify path "/usr/local/bin/ffmpeg" in DownloadHelper.
    Hope that helps!

  • Some apps require Adobe Flash; however, when I try to inst all, get message saying my iPad (version 7.0) can't support Adobe Flash, so can't access. Any way around this?en I attempt to install, get message that my iPad cannot support such.  I have a

    Some apps require Adobe Flash; however, when I attempt to upload the program, I receive message to the effect that my iPad (version 7.0)  cannot support Adobe Flash, so I am unable to view some attachments sent.  I just bought my iPad recently and am still figuring everything out. If there is some solution to my problem, I would appreciate being advised. Thanks.

    https://discussions.apple.com/thread/5461191?tstart=0

  • Oops, something is not right... Flash Plug-In Warning Explanation: You do not have the Flash player installed on your browser. How to Fix the Problem: This game requires the Flash plug-in. Download the latest Flash player now.

    When I try to play certain games on pogo, I get this: Oops, something is not right...
    Flash Plug-In Warning
    Explanation:
    You do not have the Flash player installed on your browser.
    How to Fix the Problem:
    This game requires the Flash plug-in.
    Download the latest Flash player now.
    So I download latest still get error message

    It is best to go to the source, Adobe, to get their software and updates. Sometimes malware can infect sites with messages that appear legitimate, but will, instead, install malware/virus/trojan on your system. Read the following carefully to install and/or update Adobe Flash.
    There are 2 versions of Adobe Flash; an '''ActiveX version''' for IE only and a '''Plugin version''' for most other browsers including Firefox. On a Windows system, you should always update both individually. '''''You do not have Adobe Flash (aka "Shockwave Flash" in Add-ons > Plugins) installed.'''''
    #'''Using Firefox''', go to the following direct download link and SAVE the download to your desktop so you can find it later: http://fpdownload.adobe.com/get/flashplayer/current/install_flash_player.exe
    #When the download is finished, close Firefox (File > Exit '''''OR''''' Firefox button > Exit)
    #Click or double-click on the file you just saved to your desktop
    #*In the installation window that appears, click the box to the left of "I have read and...." to place a check mark in the box
    #*The "Install" button in the lower right corner will now be highlighted, click it.
    #*The installation is quick.
    #Start Firefox and test your installation here: https://www.adobe.com/software/flash/about/
    #Direct link ActiveX version for IE '''''only''''': http://fpdownload.adobe.com/get/flashplayer/current/install_flash_player_ax.exe
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You may need to update some plug-ins. Check your plug-ins and update as necessary:
    *Plug-in check: https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    *Adobe Shockwave for Director Netscape plug-in: [https://support.mozilla.com/en-US/kb/Using%20the%20Shockwave%20plugin%20with%20Firefox#w_installing-shockwave Installing ('''''or Updating''''') the Shockwave plugin with Firefox]
    *Adobe PDF Plug-In For Firefox and Netscape: [https://support.mozilla.com/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox]
    *Shockwave Flash (Adobe Flash or Flash): [https://support.mozilla.com/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]
    *Next Generation Java Plug-in for Mozilla browsers: [https://support.mozilla.com/en-US/kb/Using%20the%20Java%20plugin%20with%20Firefox#w_installing-or-updating-java Installing or Updating Java in Firefox]

  • Can you delete some conversations in imessage and not all?

    Can you delete some of the conversations in Messages from one persons. Or must you delete all?

    1. In Messages app, tap on the name of the person you want to delete some conversations.
    2. In the person's conversations list, press and hold a message till "Copy | More..." popup
    3. Select More... and you see the message is ticked (marked), continue if you want to delete more by ticking on the left of speech bubble.
    4. Tap the Trash icon at the bottom left to deleted.

  • I cannot get GPS Only to work on my ipad3 (4g version, but not on an active cell plan, and wifi off).  Is there some new requirement in 7.1 or 7.1.1 to have cell and/or wifi enabled for GPS to work? I am testing with MotionX

    It seems like I cannot get GPS only to work on my ipad3 (4g version, but not on an active cell plan, and wifi off).  Is there some new requirement in 7.1 or 7.1.1 to have cell and/or wifi enabled for GPS to work? I am testing with MotionX, garmin blueChart mobile, and a GPS monitoring tool. All show no signal. If I turn on cell and wifi,  it says I get gps signal, but can't tell if that is from the GPS chip, or just from cell and wifi only (maybe with some gps mixed in)?  Any ideas on how to get iPad working with GPS only??

    Roger that.  Thanks for your time.
    System:
    Windows 7 64bit
    Processor: AMD phenom IIX4 965
    RAM:  Gskill Ripsaw F3-12800CL7D-4GBRM (2-2GB sticks)
    GPU:EVGA Classified Nvidia GeForce GTX 560 Ti 448 core
    PSU: Kingwin 1000W laser gold (LZG-1000)
    Yes. tried the one ram stick, no go.  I have been trying to boot off/install the windows 7 disk but am unable to get to the point where windows starts installing after its gathering information portion of the install.  I can get to the disk selection screen of the install with the WD HD on SATA port 2 but then get the "cant install messages" when I try to select the Vertex 3.  Yes I can see the Vertex 3 Drive as well as the WD drive at this point.  some times I have to hit "scan" a couple of times.

  • I have a Text control string box with some initial text. I would like to highlight old text with click of mouse and type in new data from keyboard

    I have a text control string box with some initial text (says: Please enter Name). I would like the operator to click on the text control box and have it automatically highlight so that when new data is typed in the old erases (all at once) and the new data is now in the text box.
    I tried using the "Text.Selection" property node and when I run it and put the mouse inside the text box the initial text is highlighted and if I press "delete" on the keyboard or if I start to type in new data the initial data does delete but once I start to type new characters they erase each other. For example if I want to type in “Willi
    am” I type the “W” and then the “I” but the “I” erases the “W” and now I am only left with an “I” in the text box and so on. I appreciate any help

    It seems you are continuously setting the property node over and over again. This should only happen once if you mouse over it.
    Create a property node for your text control with the following three items:
    (1) KeyFocus (wire a "true" constant to it)
    (2) Text.SelStart (Wire a "zero" constant to it)
    (3) Text.SelEnd (Wire a constant containing the string length of the text).
    Put this property node inside an event structure, triggered by "Mouse enter" on the string control.
    (see if the attached example works for you)
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    Enter_Name.vi ‏23 KB

  • ITunes (11.3 64bit) cannot run because some its required files are missing. Please reinstall iTunes.

    just set up my new laptop lenovo x240.
    Windows 7 SP1.
    itunes 64bit 11.3
    first install went fine. then I tried to move my preexisting library. the library did not show the apps. so I tried around. Treid to re-install itunes.
    Since I did, after the re-install, iTunes gives me the error message "iTunes cannot run because some its required files are missing. Please reinstall iTunes."
    I tried the  -_> link: Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8
    unfortunately it did not resolve. please, advise... I am quite desperate... and surprised this is happening, since I am on a clean corporate laptop.
    perhaps, can someone also steer me to a corner, where I can deactivate the cloud install pop-up ones starting iTunes?

    See the advice given in the user tip:Troubleshooting issues with iTunes for Windows updates for a very workable approach.

  • Skype - Problem with conversations (group)

    Hello i have problem :
    I call to friend - work
    i call to friend and add 2 friend = It does not work
    why?
    I add 2 friend to conversation and 1 friend add 2 friend no (After addition of 2 people can not write in a conversation (connection problem))
    Leave Conversations = It does not work
    Everything related to the conversation group does not work
    i : 10xReinstall skype, install IE 11, Clean Regedit, use Ccleaner, Update drivers, use ADWCleaner, update version, uninstall anti-virus, Disable Firewall, disable firewall system, router. download latest skype versions, update windows, update drivers.
    Skype Version bugged : 7.0.102
    Available commands:
    /me [text]
    /topic [text]
    /add [skypename+]
    /alertson [text]
    /alertsoff
    /leave
    /setrole [skypename] MASTER|USER
    /kick [skypename]
    /get blob
    /get uri
    /get options
    /set options [[+|-]flag] ..
    /golive [token]
    /invite [skypename]
    /showmembers
    /help
    For more help please see http://www.skype.com/go/help.chathelp
    [10:50:29] System: MSNP: Connection Data (MSNP24):
    * Status: NetStateConnected
    * Server Current: BAYMSG1020424.gateway.messenger.live.com
    * Server Saved: s.gateway.messenger.live.com
    * Login: (UIC)
    * Skypename: [Removed for privacy]
    * EPID: 800da14d-01bf-f1d1-d0e6-2b670390ef97
    * ClientVersion: 0/7.0.80.102//
    * OSVersion: Windows 6.1 Service
    * B: 0 IF: 0
    * Time: TZ: UTC+1, Server: 1422093024, Local: 1422093029
    * Recent connect: BAYMSG1020424.gateway.messenger.live.com @ 2015-01-24T09:03:12Z
    * Recent connect: BAYMSG1020424.gateway.messenger.live.com @ 2015-01-24T08:41:41Z
    * Recent connect: BAYMSG1020424.gateway.messenger.live.com @ 2015-01-24T08:19:35Z
    * Recent connect: BAYMSG1020424.gateway.messenger.live.com @ 2015-01-23T12:46:14Z
    * Recent connect: BAYMSG1020424.gateway.messenger.live.com @ 2015-01-22T19:46:56Z
    * Push: None (Unregistered)
    [10:50:40] System: name=#[Removed for privacy]/$*T;65570

    So here is how I got it fixed for my Mac OS X 10.9.5 and skype 6.19. I think Windows folks can follow a similar approach. 
    option 1 - Contact a live support agent via this link -
    https://support.skype.com/en/faq/FA10656/what-is-live-chat-support and have him/her remote login to your machine and fix it. 
    option 2 - Do-it-yourself 
    1) Try installing skype ver 6.15 (you need to find the executable over the internet or from skype-support) .. the usual steps to uninstall your current version and re-install the new version. 
    After installing ver 6.15, make sure in Skype -> Preferences, you don't check the "Always keep skype up to date" option.. or else it will go and install the latest version 6.19.  
    2) If it still doesn't work, 
    (i) Go to Finder window -> select 'Go' tab on top -> select 'Go to Folder' -> type '~/Library/Application Support/Skype/' 
    there you will find a file called "shared.xml". DELETE IT.
    (ii) Go to Finder window -> select 'Go' tab on top -> select 'Go to Folder' -> type '/private/var/db'. There may be a file called "config.xml" or something similar. DELETE IT.   
    3) Even then it doesnt work, go back to Option 1 (contacting skype-support)

  • Does the voltage to temperature conversation require in usb 6008 using daqmx 8.5??

    Another question need u all guy help.I currently using K-type thermocoupler for my project using usb 6008.Does the voltage to temperature conversation require in usb 6008 using daqmx 8.5? what is DAQ TEDS function use ? is it help us to convert?

    You will need to factor the voltage per degrees C to get to reading in degrees, this is 10mv per degree V for the device mentioned in the post you previously made
    http://forums.ni.com/ni/board/message?board.id=170&message.id=246200#M246200
    TEDS - Transducer Electronic Data Sheet
    A video about TEDS
    http://digital.ni.com/demo.nsf/websearch/8e55de8fe6b5702686256e7c007a47b4?opendocument

  • Thinkpad keyboard problem - some keys generate multiple keys when pressed

    thinkpad keyboard problem - some keys generate multiple keys when pressed
    For example, "t" generates "tr", "y" generates "yu", "backspace" generates "backspace" plus "IBM access connections", "m" generates "mn" and "n" generates "mn".  Not all keys are wrong. 
    For what it's worth, the odd behaviour started shortly after a trip to Miami in which I had a meeting at a cafe in which we were undercover but it was pouring cats and dogs - it was like having a meeting in a sauna - so I am wondering if the high humidity could have caused the behaviour.
    I tried replacing the keyboard but the new keyboard has the same problem.  
    The machine in question is a Thinkpad T23 running Windows XP Pro
    Any help would be appreciated as I am now in Los Angeles using a borrowed Mac! :-) 

    i have something along the lines of the same problem.
    http://bbs.archlinux.org/viewtopic.php?id=56777
    my conclusion is something in the last system update screwed it up.

  • I have a DVD project that takes about 14 hours to generate. Is there any way to periodically save it during encoding so power failures or other problems do not require a complete restart?

    I have a DVD project that takes about 14 hours to generate. Is there any way to periodically save it during encoding so power failures or other problems do not require a complete restart?

    No.  Are you saving the project as a disk image rather than burning directly to disk from iDVD?  If not then that's what I suggest you do.  That will separate the encoding process from the burn process to save time and disks if the encoding is bad.  It also lets you burn a second or third disk without having to encode again.
    OT

  • I cant export my pdf to excel - Problem with conversion

    I cant export my pdf to excel - Problem with conversion
    Somebody is having this problem?

    Hi,
    May i know what is the challenge you are facing?
    Check with another file.
    You can try with different browser as well.
    Regards,
    Florence

  • Are there any problems with a "required Extended Protection" / "Always On" / "Livelink Server" combination?

    Hello,
    we have a Livelink  Server database running with two replicas on two nodes as Always On Group, both instances running extended protection in "allowed" mode.
    Our company security policy demands setting the extended protection to "required".
    Are there any known problems with a "required Extended Protection" / "Always On" / "Livelink Server" combination?
    Environment:
    OS: Windows Server 2008 R2 Enterprise X64 SP1
    DB: SQL Server 2012 (11.0.5556.0)
    Thx & BR
    Achim

    Hi Achim,
    According to my knowledge, there are no known problems with a "required Extended Protection" / "Always On" / "Livelink Server" combination.
    Extended Protection helps to prevent an authentication relay attack by using service binding and channel binding. We need to note that when Extended Protection is set to
    Required, only connections from protected applications on protected operating systems are accepted. This setting is the most secure but connections from operating systems or applications that do not support Extended Protection will not be able
    to connect to SQL Server. For more details, please review the following article.
    Connect to the Database Engine Using Extended Protection
    https://msdn.microsoft.com/en-us/library/ff487261(v=sql.110).aspx
    Thanks,
    Lydia Zhang
    If you have any feedback on our support, please click
    here.
    Lydia Zhang
    TechNet Community Support

Maybe you are looking for