Regex - which regex is correct?

Hi everybody,
I must deal with regex and unfortunatelly I'm a green in ABAP.
Task: separete first occurence of this &randomtext& in string etc. '&randomtext&&howtodoit&another Text'.
I tried to use  *FIND FIRST OCCURRENCE OF REGEX '(&[\w]+&)' * but this is not working in ABAP (I've got &randomtext&&howtodoit& )
Thanks for any help.
Best regards
Martin

Sorry to know that Martin.
Here it works perfectly, so I'm afraid I can't help you more.
You can however to your experiences in report DEMO_REGEX_TOY.
If you fill in the text: &randomtext&&howtodoit&another Text
And in regex: (&\w+&)
And press enter in regex input field
You'll see that submatch 1 was the word you're searching for. So it should work...
Kind regards,
Garcia

Similar Messages

  • I connect my ipad it shows in left side of itunes it is commencing sync then it freezes itunes  and i have to disconnct it  manually then  a error message telling me that there is not enough disc space for ipad which is not correct  any ideas folks

    i connect my ipad it shows in left side of itunes it is commencing sync then it freezes itunes  and i have to disconnct it  manually then  a error message telling me that there is not enough disc space for ipad which is not correct  any ideas folks

    i have reset the ipad and restored it to no avail

  • HT201209 I have a code from a radio station to download a free song however when I go to redeem and put in my code which is typed correctly it just keeps making put my password in over and over. Any advice?

    I have a code from a radio station to download a free song however when I go to redeem and put in my code which is typed correctly it just keeps making put my password in over and over. Any advice?

    You can create an App store account without a credit card, however that won't help you with updating your previous purchases. Apps are DRM protected, and tied to the account that was used to originally purchase them. There is no way to overcome this DRM protection or transfer them to another account(Itunes support can if you contact them). If you want to create an App store account without a credit card, follow the directions here, but bear in mind the DRM protection mentioned. If you use this account to download free apps, you will have to use this same account for all future updates:
    http://support.apple.com/kb/ht2534

  • Photoshop or InDesign CS6 - which one is correct?

    I got stuck on a problem where I couldn't get Acrobat's print to match what I print out of Photoshop (Epson 7880) using Source>Print Profile "Photoshop Manages Colors" workflow.
    I traced the problem to InDesign.
    The screenshot below shows the Photoshop sRGB document (left) with the blue background, 22/56/158.
    The right side shows InDesign blue background (sRGB is Working RGB) with the identical 22/56/158 RGB fill.
    Open the screenshot in Photoshop (use the embedded profile, sRGB), and sample the blue background in each app.
    There is a considerable difference between them that could account for the difference I am complaining about the prints not matching.
    So I have to wonder which app is correct, Photoshop or InDesign...if I am missing something?

    conroy,
    do you have a custom monitor profile, or sRGB equivalent?
    your Id screenshot cuts off the area i can confirm you are using RGB (not CMYK), i also can't tell what your Id working RGB is, or your Ps Source Profile - so it is hard for me to understand what you did
    however, Ps' color picker on my MacBookPro CS6 looks like yours - the one i posted was from my MacPro CS6 and what i am used to seeing in Ps
    that may be a clue -- how do i get my MacPro to use that style color picker in Ps?
    +++++++
    gener7
    my Id document only has RGB objects, the blue swatch is "RGB"
    my Id Working RGB is sRGB (the same as my Ps Source Profile)
    in theory, the same RGB numbers using the same source profile should "match" on the monitor (calibrated or generic) in this test (if InDesign converts its Working RGB to Monitor RGB like Photoshop)
    moreover, getting Info in Ps on each app's blue background should be a numerical "match" in my screenshot, they're not

  • Prepare statement to insert a row that contains Blob column. Which way is correct?

    When we make prepare statement to insert a row that contains Blob column. Which way is correct? And what is the difference? Does anyone know?
         1.  Preparestatement.setBlob(parameter number, blob type object)
         2. Preparestatement.setBlob(parameter number, inputstream type object)
    This link show the test I made.
    https://community.oracle.com/thread/3680185?sr=inbox&customTheme=otn

    When we make prepare statement to insert a row that contains Blob column. Which way is correct? And what is the difference? Does anyone know?
         1.  Preparestatement.setBlob(parameter number, blob type object)
         2. Preparestatement.setBlob(parameter number, inputstream type object)
    I answered that in your other thread and provided a link to the JDBC Dev Guide section that discusses how to work with LOBs and BFILEs.
    Did you read that doc section?
    Did you read my reply in your other thread?
    In java a BLOB is just the locator that gives you access to the actual content. In your case you got access by selecting an existing BLOB locator and getting its inputstream. That inputstream is what gives you access to the actual blob content.
    The locator is just that; it specifies the LOCATION of the blob content but it is NOT the content.

  • I have an image that I removed from its back ground and I would like to scale the bottom portion of the image because its to wide but not have that effect the top portion of the image which is the correct with. but also keep the aspect ratio correct? how

    I have an image that I removed from its back ground and I would like to scale the bottom portion of the image because its to wide but not have that effect the top portion of the image which is the correct width. but also keep the aspect ratio correct, keep it looking as natural as possible (its a piece of jewlery) ? how can I begin to do this.

    The area circled in red is to wide (the width) the necklace's width is as wide as the models entire chest. And also the length of the necklace it's to long it should come down to the clevage area on the model/woman.

  • How do I know which is the correct location of the JRE?

    How do I know which is the correct location of the JRE / JVM? What do I add to my PATH environment variable? I'm trying to install Sybase ASE on my Sun Fire v480 SPARC box, but keep getting the below error...
    "A suitable JVM could not be found. Please run the program again using the option -is:javahome <JAVA HOME DIR>"
    So I did the following...
    STEP 01) To confirm that Java is installed, I ran the java -version command. I received the following output...
    bash-3.00# java -version
    java version "1.5.0_17"
    Java(TM) Platform, Standard Edition for Business (build 1.5.0_17-b04)
    Java HotSpot(TM) Server VM (build 1.5.0_17-b04, mixed mode)
    STEP 02) Then I tried to locate the location of where Java was installed...
    bash-3.00# which java
    /usr/bin/java
    STEP 03) Then I tried to confirm if it was a symbolic link or not...
    bash-3.00# ls -al /usr/bin/java
    lrwxrwxrwx 1 root other 16 Jun 24 01:54 /usr/bin/java -> ../java/bin/java
    STEP 04) The symbolic link doesn't seem to match any of the output below. Which is the correct location / path of Java (JVM / JRE)?
    bash-3.00# find / -name java -print;
    /usr/share/lib/java
    /usr/share/java
    /usr/bin/java
    /usr/sfw/include/mozilla/java
    /usr/include/firefox/java
    /usr/jdk/instances/jdk1.5.0/bin/java
    /usr/jdk/instances/jdk1.5.0/bin/sparcv9/java
    /usr/jdk/instances/jdk1.5.0/jre/bin/java
    /usr/jdk/instances/jdk1.5.0/jre/bin/sparcv9/java
    /usr/jdk/packages/javax.help-2.0/doc/api/com/sun/java
    /usr/java
    /usr/apache/tomcat/webapps/tomcat-docs/catalina/docs/api/org/apache/naming/java
    /usr/apache/tomcat55/classes/org/apache/naming/java
    /usr/apache/jserv/docs/api/org/apache/java
    /usr/j2se/bin/java
    /usr/j2se/bin/sparcv9/java
    /usr/j2se/jre/bin/java
    /usr/j2se/jre/bin/sparcv9/java
    /usr/appserver/samples/blueprints/adventure1.0.4/project/apps/activitysupplier/activitysupplier-ejb/src/java
    /usr/appserver/samples/blueprints/adventure1.0.4/project/apps/airlinesupplier/airlinesupplier-ejb/src/java
    /usr/appserver/samples/blueprints/adventure1.0.4/project/apps/bank/bank-ejb/src/java
    /usr/appserver/samples/webservices/security/web/apps/clientCert/clientCert-share/src/java
    /usr/appserver/samples/webservices/security/web/apps/clientCert/clientCert-war/src/java
    /usr/appserver/samples/webservices/security/web/apps/xms/xms-client/src/java
    /usr/appserver/samples/webservices/security/web/apps/xms/xms-share/src/java
    /usr/appserver/samples/webservices/security/web/apps/xms/xms-war/src/java
    /usr/appserver/samples/xml/apps/dom/src/java
    /usr/appserver/samples/xml/apps/sax/src/java
    /usr/appserver/samples/xml/apps/xslt/src/java
    /opt/staroffice8/share/Scripts/java

    I've been racking my head against the wall, but can't seem to find the solution... I've even installed the latest JRE (in a new location), but still seem to have the same problem. Please see the notes below...
    I installed the latest JRE in /export/home/jvm/jre1.6.0_17/
    bash-3.00# /export/home/jvm/jre1.6.0_17/bin/java -version
    java version "1.6.0_17"
    Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
    Java HotSpot(TM) Server VM (build 14.3-b01, mixed mode)
    bash-3.00# PATH=/export/home/jvm/jre1.6.0_17/bin:$PATH
    bash-3.00# export PATH
    bash-3.00# echo $PATH
    /export/home/jvm/jre1.6.0_17/bin:/usr/sbin:/usr/bin
    bash-3.00# JAVA_HOME=/export/home/jvm/jre1.6.0_17/bin
    bash-3.00# export JAVA_HOME
    bash-3.00# echo $JAVA_HOME
    /export/home/jvm/jre1.6.0_17/bin
    bash-3.00# env
    HZ=100
    LC_MONETARY=en_CA.UTF-8
    TERM=xterms
    SHELL=/sbin/sh
    LC_NUMERIC=en_CA.UTF-8
    OLDPWD=/export/home/jvm/jre1.6.0_17
    PATH=/export/home/jvm/jre1.6.0_17/bin:/usr/sbin:/usr/bin
    MAIL=/var/mail/root
    LC_MESSAGES=C
    LC_COLLATE=en_CA.UTF-8
    PWD=/export/home/jvm/jre1.6.0_17/bin
    JAVA_HOME=/export/home/jvm/jre1.6.0_17/bin
    EDITOR=vi
    TZ=Japan
    SHLVL=1
    HOME=/
    LOGNAME=root
    LC_CTYPE=en_CA.UTF-8
    LC_TIME=en_CA.UTF-8
    _=/usr/bin/env
    bash-3.00# cd /cdrom/disc1050709/
    bash-3.00# ./setup -console
    InstallShield Wizard
    Initializing InstallShield Wizard...
    Searching for Java(tm) Virtual Machine...
    .........................A suitable JVM could not be found. Please run the program again using the option -is:javahome <JAVA HOME DIR>
    Is there something I'm missing?
    Thank you

  • How do I know which is the correct location of the JVM?

    How do I know which is the correct location of the JVM? What do I add to my PATH environment variable? I'm trying to install Sybase ASE on my Sun Fire v480 SPARC box, but keep getting the below error...
    *"A suitable JVM could not be found. Please run the program again using the option -is:javahome <JAVA HOME DIR>"*
    So I did the following...
    STEP 01) To confirm that Java is installed, I ran the java -version command. I received the following output...
    bash-3.00# java -version
    java version "1.5.0_17"
    Java(TM) Platform, Standard Edition for Business (build 1.5.0_17-b04)
    Java HotSpot(TM) Server VM (build 1.5.0_17-b04, mixed mode)
    STEP 02) Then I tried to locate the location of where Java was installed...
    bash-3.00# which java
    /usr/bin/java
    STEP 03) Then I tried to confirm if it was a symbolic link or not...
    bash-3.00# ls -al /usr/bin/java
    lrwxrwxrwx 1 root other 16 Jun 24 01:54 /usr/bin/java -> ../java/bin/java
    STEP 04) The symbolic link doesn't seem to match any of the output below. Which is the correct location / path of Java (JVM / JRE)?
    bash-3.00# find / -name java -print;
    /usr/share/lib/java
    /usr/share/java
    /usr/bin/java
    /usr/sfw/include/mozilla/java
    /usr/include/firefox/java
    /usr/jdk/instances/jdk1.5.0/bin/java
    /usr/jdk/instances/jdk1.5.0/bin/sparcv9/java
    /usr/jdk/instances/jdk1.5.0/jre/bin/java
    /usr/jdk/instances/jdk1.5.0/jre/bin/sparcv9/java
    /usr/jdk/packages/javax.help-2.0/doc/api/com/sun/java
    /usr/java
    /usr/apache/tomcat/webapps/tomcat-docs/catalina/docs/api/org/apache/naming/java
    /usr/apache/tomcat55/classes/org/apache/naming/java
    /usr/apache/jserv/docs/api/org/apache/java
    /usr/j2se/bin/java
    /usr/j2se/bin/sparcv9/java
    /usr/j2se/jre/bin/java
    /usr/j2se/jre/bin/sparcv9/java
    /usr/appserver/samples/blueprints/adventure1.0.4/project/apps/activitysupplier/activitysupplier-ejb/src/java
    /usr/appserver/samples/blueprints/adventure1.0.4/project/apps/airlinesupplier/airlinesupplier-ejb/src/java
    /usr/appserver/samples/blueprints/adventure1.0.4/project/apps/bank/bank-ejb/src/java
    /usr/appserver/samples/webservices/security/web/apps/clientCert/clientCert-share/src/java
    /usr/appserver/samples/webservices/security/web/apps/clientCert/clientCert-war/src/java
    /usr/appserver/samples/webservices/security/web/apps/xms/xms-client/src/java
    /usr/appserver/samples/webservices/security/web/apps/xms/xms-share/src/java
    /usr/appserver/samples/webservices/security/web/apps/xms/xms-war/src/java
    /usr/appserver/samples/xml/apps/dom/src/java
    /usr/appserver/samples/xml/apps/sax/src/java
    /usr/appserver/samples/xml/apps/xslt/src/java
    /opt/staroffice8/share/Scripts/java

    I've been racking my head against the wall, but can't seem to find the solution... I've even installed the latest JRE (in a new location), but still seem to have the same problem. Please see the notes below...
    I installed the latest JRE in /export/home/jvm/jre1.6.0_17/
    bash-3.00# /export/home/jvm/jre1.6.0_17/bin/java -version
    java version "1.6.0_17"
    Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
    Java HotSpot(TM) Server VM (build 14.3-b01, mixed mode)
    bash-3.00# PATH=/export/home/jvm/jre1.6.0_17/bin:$PATH
    bash-3.00# export PATH
    bash-3.00# echo $PATH
    /export/home/jvm/jre1.6.0_17/bin:/usr/sbin:/usr/bin
    bash-3.00# JAVA_HOME=/export/home/jvm/jre1.6.0_17/bin
    bash-3.00# export JAVA_HOME
    bash-3.00# echo $JAVA_HOME
    /export/home/jvm/jre1.6.0_17/bin
    bash-3.00# env
    HZ=100
    LC_MONETARY=en_CA.UTF-8
    TERM=xterms
    SHELL=/sbin/sh
    LC_NUMERIC=en_CA.UTF-8
    OLDPWD=/export/home/jvm/jre1.6.0_17
    PATH=/export/home/jvm/jre1.6.0_17/bin:/usr/sbin:/usr/bin
    MAIL=/var/mail/root
    LC_MESSAGES=C
    LC_COLLATE=en_CA.UTF-8
    PWD=/export/home/jvm/jre1.6.0_17/bin
    JAVA_HOME=/export/home/jvm/jre1.6.0_17/bin
    EDITOR=vi
    TZ=Japan
    SHLVL=1
    HOME=/
    LOGNAME=root
    LC_CTYPE=en_CA.UTF-8
    LC_TIME=en_CA.UTF-8
    _=/usr/bin/env
    bash-3.00# cd /cdrom/disc1050709/
    bash-3.00# ./setup -console
    InstallShield Wizard
    Initializing InstallShield Wizard...
    Searching for Java(tm) Virtual Machine...
    .........................A suitable JVM could not be found. Please run the program again using the option -is:javahome <JAVA HOME DIR>
    Is there something I'm missing?
    Thank you

  • I cannot reactivate my e-reader with my existing Adobe ID and password which are both correct. I alwayss get the message "activation server error, Code: E_AUTH_NOT_READY" What kind of problem is this and what is most important, how can I solve it quickly.

    I cannot reactivate my e-reader with my existing Adobe ID and password which are both correct. I alwayss get the message "activation server error, Code: E_AUTH_NOT_READY" What kind of problem is this and what is most important, how can I solve it quickly. I am on holiday and want to read. Thanks for speedy reply.

    Yes, actually I talk about Digital editions. Do you know how to solve the problem as described in my first mail for Digital Editions? Thanks for your  kind assistance.

  • Which temp is correct BIOS or PC Alert 4?

    I noticed that temperature in PC Alert 4 is always 3-4C higher than in BIOS.
    Which one is correct?
    KT4 Ultra
    XP 2400+ with Volcano 7+

    take the bios as right
    try speedfan
    http://www.almico.com/speedfan.php

  • Which statement is correct?--------QNo.108

    Which statement is correct?--------
    A. One block change tracking file is created for each datafile. By default, the file is created in DB_CREATE_FILE_DEST.
    B. One block change tracking file is created for the database.By default, the file is created in DB_CREATE_FILE_DEST.

    Given the commands to enable and disable block change tracking, which do you think is the correct answer?
    SQL> ALTER DATABASE ENABLE BLOCK CHANGE TRACKING;
    SQL> ALTER DATABASE DISABLE BLOCK CHANGE TRACKING;
    Take a look at the docs for detailed information.
    http://download-east.oracle.com/docs/cd/B19306_01/backup.102/b14192/bkup004.htm

  • HT4519 when i try send a email off my iphone its says my house name is ,how do i find out which is the correct name?

    when i try send a email off my iphone its says my house name is wrong,how do i find out which is the correct name?

    Try deleting the account and then add it back.

  • Which are the correct settings for gmail in MacBookPro

    I want to use mac mail to access my gmail. Can I  ? instead of going directly to web to access my gmail.? Which are the correct settings for the incoming and outgoing servers ?

    Hi,
    Yes. You can absolutely access your Gmail account from within either Mail or Microsoft Outlook for Mac. Make sure, that you have enabled POP/IMAP in your Gmail settings, then follow the instructions here: http://mail.google.com/support/bin/answer.py?hl=en&answer=180188 if you wish to access your account via POP3 instead of IMAP, change the incoming mail server to pop.gmail.com
    Regards,
    Gábor

  • Which is the correct way to filter/block traffic between vlans?

      Hi all. My question is: Which is the correct way to filter/block traffic between vlans?
    i have a more than 15 vlans. I want to block traffic between them except 2 vlans.
    source vlan 3 deny destination vlan 4
    #access-list 100 deny ip 192.168.3.0 0.0.0.255 192.168.4.0 0.0.0.255
    and the oposite:
    #access-list 101 deny ip 192.168.4.0 0.0.0.255 192.168.3.0 0.0.0.255
    I have to do this for all VLANs, ono by one. Is that right?
    Thanks.

    There are a couple of ways to achieve that. I assume that you have a Layer3-Switch. There I would configure one ACL per vlan-interface and allow/deny the traffic as you want. Sadly, the Switches don't support object-groups yet, so you have to use the IP-networks here. Only allow/deny traffic based on networks or hosts. Don't even try to be very granular with permit/denys based on ports. Because the switch-ACLs are not statefull you'll run into problems for the return-traffic if you woulf do that. And the return-traffic of course has to be allowed also.
    Another way: with the help of 802.1x you can deploy port-based ACLs for every user. That takes some time for planning, but is one of the most powerful solutions.
    For more control you could remove the L3-interface from your L3-switch and move that to your router or firewall. These devices support stateful filtering and you can control your traffic much tighter tehn with ACLs on the switch.
    Don't stop after you've improved your network! Improve the world by lending money to the working poor:
    http://www.kiva.org/invitedby/karsteni

  • TS1702 How can I find out which is the correct app to read a PDF on my iPhone 5?

    I purchased a PDF reader from the app store, but I still cannot read the file. When I try to download the file, it states that I need an updated version of PDF. I notice there are several PDF apps available, but I don't know which is the correct one. How can I find out the correct application I need?

    Select the tune and then - Get Info - in the dialog box is a note of the Apple ID used to purchase.
    MJ

Maybe you are looking for

  • Layout not working in Firebox or Safari

    I hope someone can offer some advice. I have created a website using the table layout in dreamweaver. The website preview perfectly in IE, but the layout is messed up in any other browser. I realise that there are better ways to run the site, but sho

  • LaserJet Pro P1606dn and Windows 8 problems

    I recently upgraded an office of 7 computers to Windows 8. The office has a networked LaserJet P1606dn printer. I had pre-installed the driver, downloaded from the HP website, onto the new computers. I had Group Policy Preferences push out the new pr

  • $150 port in credit x2 lines no credit received

    I can tell from other posts that many others are just as frustrated as I am. I switched from T-Mobile to Verizon on December 29th and was in luck, or so I thought, that they were offering a port in credit of $150 per smart phone. My husband and I mad

  • MS Access 2K/ODBC link Problems

    Hi - To date, I've been accessing Oracle files through an Oracle 8 ODBC link. I then had a problem where I couldn't update a long number field. Kept saying that the record was locked and that I could "Copy" or "Drop" my changes. I could easily update

  • Error Starting managed server

    Hi, During installation of SOA 11g, i am facing problem in starting the managed server. Iam using the following components with versions: 1. Weblogic Server 10.3.2.0 2. RCU ofm_rcu_win32_11.1.1.2.1_disk1_1of1.zip 3. SOA Suite 11.1.1.3.0 Configured th