Regex 5 digits or more in a string

Hi all,
I'm trying to find a 5 or more digit integer from a string.
Pattern p = Pattern.compile("\\d{5,}?");
Matcher m = p.matcher("dawdsdadsaw 40050 asdawdjahsdj asdjahwd asjhda");
if(m.find()){
ticketString = m.group();
ticketId = Integer.parseInt(ticketString);
Is that a valid regex?

Hey Kayaman,
I'm actually trying to run it through a jellyscript but its not working. I realized that the regex doesnt work.
In case anyone else runs into trouble, you can build your regex and test it there.
http://regexpal.com/
instead my regex is \d{5,}
haven't had a chance to test it yet but hope it works.

Similar Messages

  • How to return more than one string?

    Hi,below is my code:
    @WebMethod(operationName = "CheckBooking")
    public String CheckBooking(@WebParam(name = "ID")
    String ID) {
    try {
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con = DriverManager.getConnection("jdbc:odbc:Flight");
    // Statement stmt = con.createStatement();
    String b="Select Destination, Date from Flight_Booking WHERE BookingID=?";
    PreparedStatement ps=con.prepareStatement(b);
    ps.setString(1,ID);
    ResultSet a = ps.executeQuery();
    //Print the data to the console
    while(a.next()){
    return a.getString(1);
    catch( Exception e ) {
    e.printStackTrace();
    return "a";
    Actually, I would like to select Destination and Date from the database, but if I set the return result as string, then only Destination will be return,how can I modify it so that both of the Destination and Date also will be return?As I know, .Net has a return type called Dataset, in Java what should I write?
    Actually,I am writing this web services to consume it on a table from .Net,so what is the most suitable to code it so that more than one string can be return?

    Create either a list or an array and assign your values to it and return it.
    arrays
    lists

  • Sending more than one string from a server to a client in TCP/IP

    hi,
    i have two VIs where one is the server and the other the client in TCP/IP. I need to send more than 2 strings to the client at the same time.i have used the XML method but then by using XML i cant send any thing else to the client because of the byte sizes. so either i need a new way to send the strings or a new way to send more data. i have attached my VIs to this post if you need to take a look.
    thanks,
    Rambaldi.
    Attachments:
    ServerClient.zip ‏83 KB

    Well, after looking at the code it is very difficult to understand what you are trying to do. Not to be nasty or anything but your code is a mess. Did you know that in both VIs you have an infinite loop? The only way to exit your VIs is to use the Abort button. This is bad since it doesn't allow you to actually perform any type of cleanup. Your wiring is very difficult to follow. You should also avoid using local variables to pass data through your application. If you need to pass data between two parallel processes use queues, notifiers or an action engine. You can get rid of all of the sequence frames that you have. They aren't really doing anything for you and are unnecessary.
    As to your particular question I would have to assume that it is simply a result of bad coding that is preventing you from sending more than one string. You have logic in the second loop that appears to be impossible to get to since the conrol used to switch the case statement is placed on a hidden part of the front panel. Take a look at the TCP server example I posted in this thread. The example is on the second page of that thread.
    In order to help you I think you need to provide a good description of exactly what you want your server and client to do. You also need to do some code cleanup to make it readable and easier to follow.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • Shell script how getopts can accept more than one string in one var

    In shell script   how  getopts  can  accept  more than one string in one variable    DES
    Here is the part of shell script that accepts variables  from the Shell script  but the   DES   variable does not accepts more than one variable.,  how to do this ??
    When i run the script like below
    sh Ericsson_4G_nwid_configuration.sh   -n  orah4g    -d   "Ericsson 4g Child"    -z Europe/Stockholm
    it does not accepts    "Ericsson 4g Child"    in  DES  Variable   and only accepts    "Ericsson"  to DES variable.
    how to make it accept     full   "Ericsson 4g Child" 
    ========================================
    while getopts “hn:r:p:v:d:z:” OPTION
    do
      case $OPTION in
      h)
      usage
      exit 1
      n)
      TEST=$OPTARG
      z)
      ZONE="$OPTARG"
      d)
      DES="$OPTARG"
      v)
      VERBOSE=1
      usage
      exit
      esac
    done

    Please use code tags when pasting to the boards: https://wiki.archlinux.org/index.php/Fo … s_and_Code
    Also, see http://mywiki.wooledge.org/Quotes

  • Regex Pattern Match in an extremely long string

    I need to search a file containing 1 extremely long line (approximately 1 million characters), The pattern I want to search is "ABC" as long as it appears at least n times whatever user input as n. I need the position of where this pattern is found. How to best do this? I tried to break the input into blocks of 100000 characters at a time as too many characters read cause the 'java out of memory' error to occur.
    Then I converted this to a string in order to use REGEX to search. My problem is how to ensure that the last few characters of the current block is also being searched too? How to write the regex expression to do this? Will breaking the input file into multiple lines help?
    eg:
    Searching for ABC as long as it appears at least 3 times continuously ie (ABCABCABC)
    Original Line = XXXXXXXABCABCABCXXXXXXABCX
    The first block of 10 characters read is XXXXXXXABCABC
    The second block of 10 characters read is ABCXXXXXXABCX
    The search result should be position 7 and position 22

    If the sequence of characters is longer than a few hundred KB, then turning it into a String requires you to have enough heap space available in the JVM to store the entire String.
    If that is a problem, an alternative solution is to have a while loop over an InputStream that reads from the source of characters (a file, a network connection, stdin etc.) and looks for the string. Keep a ring buffer the size of the query string, and read the data from the InputStream into it. Then for each character read, compare the content of the ring buffer to the query string.
    This way you will not use more heap space than the size of the query-string, and the size of whatever buffer you use in your InputStream (8KB for the empty constructor of BufferedInputStream at the moment) plus the odds'n ends from the implementation.

  • [regex help]Find EXACT characters in a String.

    Ok, i got this so far ...
    import java.util.regex.Matcher;
    import java.util.regex.Pattern;
    public class Testing2 {
        public static void main(String[] args) {
            Pattern p = Pattern.compile("[wati]");
            String text = "water";
            Matcher m = p.matcher(text);
            if (m.find()) {
                System.out.print("Found !");
    }With that code i got a match, but i ONLY want to find a match if the String matches the EXACTS characters in the Pattern ...
    in this case i got, 'w' 'a' 't' 'i', 'w' 'a' 't', are in water, but 'i' NOT, so i don't want to have a match !
    i don't know how to acomplish this :(
    hope you can help me, thanks in advance :D

    Username7260 wrote:
    Ok, i got this so far ...
    import java.util.regex.Matcher;
    import java.util.regex.Pattern;
    public class Testing2 {
    public static void main(String[] args) {
    Pattern p = Pattern.compile("[wati]");
    String text = "water";
    Matcher m = p.matcher(text);
    if (m.find()) {
    System.out.print("Found !");
    }With that code i got a match, but i ONLY want to find a match if the String matches the EXACTS characters in the Pattern ...
    in this case i got, 'w' 'a' 't' 'i', 'w' 'a' 't', are in water, but 'i' NOT, so i don't want to have a match !
    i don't know how to acomplish this :(AFAIK there's no syntax in regular expressions to accomplish this. Try turning your string into a character array, sorting it, and then do a simple comparison.

  • More than 3 string column unlimited text

    hi ,
    i have a requirement in which i have 15 unlimited text fields in UI . I need to save the 15 unlimited text fields data to be stored in a table . when i try to create a table with more than 3 column of type string i get an error says can not create column more than 3 of type string . is their a work around or how we handle in abap.
    thank you ,
    chandra.

    I would also suggest using the standard text to store the texts that you have. Take a look at the weblog for a implementation of the same..
    /people/igor.barbaric/blog/2005/06/06/the-standard-text-editor-oo-abap-cfw-class
    You can look at these texts in SO10 transaction
    Regards,
    Ravi
    Note - Please mark all the helpful answers

  • Can we pass more than a string as SECURITY_PRINCIPAL to an EJB?

    Hi there,
    I am wondering if we could pass more than just a String as a
    SECURITY_PRINCIPAL to an EJB?
    For example, if I have EJB_1 on server_A that calls EJB_2 on server_B, when
    EJB_1 creates the InitialContext, I will need to pass in "Username" and
    "Password" as the SECURITY_PRINCIPAL and SECURITY_CREDENTIAL. From EJB_2, I
    could get the SECURITY_PRINCIPAL in the form of a java.security.Principal
    principalObject.getName() right? What if I my security principal is more
    than just a username, could I make this work?
    Thanks!
    Steven

    Hey Sri,
    Thanks for the reply. This sounds like a pretty serious flaw? I mean what if
    the authentication involves more than just a username? Or if it was a
    biometric scan or something?
    In my case, I just wanted to pass in things like client machine name, ip
    address for logging on the server side and such without having to create an
    additional parameter on each of my EJB methods. Is there any other way that
    I could do so?
    Best Rgds,
    Steven.
    "Sri" <[email protected]> wrote in message news:[email protected]..
    >
    There is no way in J2EE to piggy back objects on pricipal; you can onlyget caller
    name. However you can piggy back stringified object on your caller name. Ibelieve
    this is true for WLS too.
    S
    "Steven" <[email protected]> wrote:
    Hi there,
    I am wondering if we could pass more than just a String as a
    SECURITY_PRINCIPAL to an EJB?
    For example, if I have EJB_1 on server_A that calls EJB_2 on server_B,
    when
    EJB_1 creates the InitialContext, I will need to pass in "Username" and
    "Password" as the SECURITY_PRINCIPAL and SECURITY_CREDENTIAL. From EJB_2,
    I
    could get the SECURITY_PRINCIPAL in the form of a java.security.Principal
    principalObject.getName() right? What if I my security principal is more
    than just a username, could I make this work?
    Thanks!
    Steven

  • Java + Regex (Searching one or more words within quotes)

    Hi Everyone,
    I have the following text:
    The brown "cow" jumped over the "contributor licensing agreement" and went to "Burger King" to order chicken wings.
    The text above may change. This is the input text. In the input text, I want to find and print out all phrases that are inbetween quotes. I tried the following:
    Pattern pattern = Pattern.compile("\"(.*)\"");
    Matcher matcher = pattern.matcher(paragraph);
    while(matcher.find()){
        String theMatch=matcher.group();
        System.err.println("Found: "+theMatch);
    }The regex expression works in my regex coach program (which helps me test regex on input strings). In the Java code, however, the application only finds "cow", not "contributor licensing agreement" or "Burger King." What do I need to do in order to find those other two phrases? I want to use this to parse out and find all words or phrases in a document that are inbetween quotes.
    What am I doing wrong??
    jetcat33

    how about using a "reluctant" quantifier "?"
        Pattern pattern = Pattern.compile("\".*?\""); // note the question mark
        Matcher matcher = pattern.matcher(paragraph);
        while(matcher.find()){
            String theMatch=matcher.group();
            System.err.println("Found: "+theMatch);
        }

  • Digital Signature more then one BinarySecurityToken? without SignatureValue

    Hello together,
    XI7.0 calls an external webservice using SOAP. The communication runs successfully without any warning. But! The messages must be singed and encrypted.
    Iu2019ve configured signature authentication. The signed messages can not being processed by external web service. The error is:
             <faultcode xmlns:ns1="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">ns1:SecurityTokenUnavailable</faultcode>
             <faultstring>Referenced security token could not be retrieved (Reference "#sap-23")
    The output of SOAP Adapter contains 3 BinarySecurtyToken blocks, which are similar! But only one of it has SignatureValues. I mean it can be reason of the error.
    My question is:
    Is it possible that Security Tag has more then one BinarySecurityToken? The message is signed with PKCS#12 key, which contains 3 certificate chains.  But If I take another private key without any certificate chain (self-signed) I have the same problem: 3 Binary SecurityToken.
    So the question: How many Token are possible within Security Tag?? Why? If not what have I to`do?
    Here is an outout of SOAP Adapter.
       <SOAP:Header>
             <wsse:Security xmlns:wsse='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd' SOAP:mustUnderstand='1'>
                <wsse:BinarySecurityToken xmlns:wsu='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd' wsu:Id='sap-3' ValueType='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3' EncodingType='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary'>SIGNATURE </wsse:BinarySecurityToken>
                <ds:Signature xmlns:ds='http://www.w3.org/2000/09/xmldsig#'>
                   <ds:SignedInfo>
                      <ds:CanonicalizationMethod Algorithm='http://www.w3.org/2001/10/xml-exc-c14n#'/>
                      <ds:SignatureMethod Algorithm='http://www.w3.org/2000/09/xmldsig#rsa-sha1'/>
                      <ds:Reference URI='#wsuid-body-51cf5350-ab2e-11dd-9ef0-00144fa86689'>
                         <ds:Transforms>
                            <ds:Transform Algorithm='http://www.w3.org/2001/10/xml-exc-c14n#'/>
                         </ds:Transforms>
                         <ds:DigestMethod Algorithm='http://www.w3.org/2000/09/xmldsig#sha1'/>
                         <ds:DigestValue>E99gPpCexjdz7tk+wWp92r4DYNA=</ds:DigestValue>
                      </ds:Reference>
                   </ds:SignedInfo>
                   <ds:SignatureValue>SIGNATURE VALUE </ds:SignatureValue>
                   <ds:KeyInfo>
                      <wsse:SecurityTokenReference>
                         <wsse:Reference URI='#sap-23'/>
                      </wsse:SecurityTokenReference>
                   </ds:KeyInfo>
                </ds:Signature>
                <wsse:BinarySecurityToken xmlns:wsu='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd' wsu:Id='sap-23' ValueType='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3' EncodingType='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary'> SIGNATURE</wsse:BinarySecurityToken>
                <wsse:BinarySecurityToken xmlns:wsu='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd' wsu:Id='sap-23' ValueType='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3' EncodingType='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary'>SIGNATURE </wsse:BinarySecurityToken>
             </wsse:Security>
          </SOAP:Header>
          <SOAP:Body xmlns:wsu='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd' wsu:Id='wsuid-body-51cf5350-ab2e-11dd-9ef0-00144fa86689'>
             <ns1:Request xmlns:ns1='http://blabla.com /'>
                <a></a>
             </ns1: Request>
          </SOAP:Body>
       </SOAP:Envelope>
    If anybody has done it have an idea how to do it please let me know.
    Thank you!! Anna

    Dear Anna
    I also need to use the similar soap header to call synchronous web service from PI 7.3 dual stack.
    I am trying to achieve this through receiver soap adapter with webServiceSecurity profile.
    I have done the required config on receiver agreement but still not able to get the digital signatures.
    I really appreciate if you can provide any pointers on this.
    Thanks
    Sapna

  • Urgent + Search a delimited file for more then one string

    Hi All
    Urgent please help I am trying to search a file for 2 different strings.
    This is how the command prompt will look like
    java match "-t|" -4 -f Harvey -10 -f Atlanta callbook.txtPlease help me with identifying how many search criterias have been entered on command prompt.
    "-t|" - denotes a delimiter
    -4 - denotes the field number
    -f - case sensitive
    Thanks

    Hi
    Thanks for your quick response and I apologise I will never put urgent on my posting again.
    C:\>java match "-t|" -4 -f Harvey -10 -f Atlanta callbook.txt
    This example lists records for Atlanta with first name Harvey.
    I am able to get one search criteria but when I have 2 as above (Harvey and Atlanta) I get lost I do not know how to get these arguments from the commandline and still do a search correctly. My code at the moment is doint a hard coded search so I was trying to extract the arguments that's where I got stuck.
    The main aim of my app is to search a delimited file for a search criteria passed through a command prompt.
    This is what I have done so far.
    import  java.io.*;
    import java.util.*;
    public class assess1
        static public void main(String args[])
            int[] totals = new int[10];
            try
                BufferedReader inFile = new BufferedReader(new FileReader(args[0]) );
                try
                    String line;
              String StrSearch = "HARVEY";
              int counter = 0;
                    boolean foundIt = false;
                    while((line = inFile.readLine()) != null)
                     // search for the string
                      String[] values = line.split("\\|");
                       for (String str : values) {
                   if (str.equals("HARVEY")) {
                               System.out.println(line);
                             System.out.println();
                        counter++;
              if (counter == 0) {
                   System.out.println("String not found");
              inFile.close();
                catch(IOException e)
                    System.err.println("IO exception");
                    System.exit(1);
                catch(NumberFormatException e)
                    System.err.println("Value " + e.getMessage() + "not numeric");
            catch(FileNotFoundException e)
                System.err.println( "Couldn't open " + e.getMessage() );
                System.exit(1);
    }

  • Batch Rename - allow 6 digits (or more)

    Batch rename of files allows a sequence number that is limited to 5 digits. Even though the selector control allows you to specify six digits, the sequence number box does not allow the entry of the 6th digit. For example, I have the following:
    New file name:
    text: tf
    sequence number: 40389
    allow: Six Digits
    If I attempt to enter the sixth digit, I get a "beep" and the entry is not allowed. The Preview at the bottom indicates:
    Current file name: tf0001.cr2
    New filename: tf0403980.cr2
    It might also be useful to allow seven digits on the sequence number.
    The motivation for this is to allow perpetual sequence numbers. I have named all of my digital images with the series tf######. At present, I have over 400,000 images in my system. This provides a unique image identification without restoring to additional information such as "date + subject". In this way, all images on my web pages are identified by this simple number and a customer can simply provide a file number as an image reference - no matter when the image was taken or for which event.

    You are probably stuck with writing a script as this is an unusual format.  Check with Bridge scripting to see if one is already available.

  • How to convert digital signal to hexadecima​l string?

    Hi!
    My problem seemed to be very easy but I cannot find a simple solution. Namely, I have to make a simple project that acquires bits from a single digital line (not that it is important but I use one channel of a PXI 6552) and stores a certain number of bits (let’s say 1000 bits) from the channel in a txt file in hexadecimal format. I can convert it to a binary array of unsigned integers and make a loop that reads every 4 bits and calculate hexadecimal value but is it possible that there is no simpler way?!
    Thank you!
    Solved!
    Go to Solution.

    Thank you for your prompt reply! I understand that hexadecimal is just a format of presenting data but I have a problem to write digital data in that format to a txt file.  
    To make it easier for understanding and for testing purposes as well, I have made a test program that reads hexadecimal values from a txt file (the structure of this file is the structure I need to get at the end), transforms it in a digital stream as I get from the pxi 6552 (I had to change a bit the VI DTbl Binary U8 to Digital Stream.vi), and write it back to a txt file. This test program still needs some fixing to make input and output file exactly the same, but for the start output file is a txt file with hexadecimal values of my digital stream. I was wondering if there is a simpler solution for the while loop in this example.
    I hope this example made it clearer a bit.
    Attachments:
    WriteToFileHex.vi ‏21 KB
    DTbl Binary U8 to Digital StreamIva.vi ‏19 KB
    barker_tab.txt ‏1 KB

  • DPS: transform attribute value - more than sub-string - more like awk/sed

    We have been working on using DirProxy to transform telephoneNumber from "(XXX) YYY-ZZZZ" format to a "Y-ZZZZ" for our VoIP call manager and and have been successful.
    How we find out that our VoIP phones have feature that lets users search by phone number. The problem is that there is no way to input a dash (-) character on the phone so we would like to be able to translate from the "(XXX) YYY-ZZZZ" format that is stored in LDAP to "YZZZZ",
    Anyone have suggestions on how to do this? (We know we can create a local attribute in the LDAP master in the format YZZZZ and have DPS return that attribute as telephoneNumber, but we are hoping we can do the transformation on the fly.)
    Thanks.

    I'm on the roads for a few weeks and have limited bandwith but here is what I did recently with the DPS version not released yet. Hope this works with DPS 6.3
    I created 3 transformations and associated them with the dataview, assuming phoneNumber looks like (XXX) YYY-ZZZZ
    In the example below, reworked number is returned in attr yz
    - step1 : extract trailing Y
    - attribute name : y // temp attr
    - model : mapping
    - transformation: add value
    - viewValue : substring(${phoneNumber}, 7, 8)
    - internalValue: ${xxxx} // dont care
    -step2 : extract ZZZZ
    - attribute name : z // temp attr
    - model : mapping
    - transformation: add value
    - viewValue : substring(${phoneNumber}, 10)
    - internalValue: ${zzzz} // dont care
    - viewValue : substring(${phoneNumber}, 7, 8)
    - internalValue: ${xxxx} // dont care
    -step3 : reconstruct
    - attribute name : xz // temp attr
    - model : mapping
    - transformation: add value
    - viewValue : ${y}${z}
    - internalValue: ${y}${z}
    Note that this would work for searches only, and when the reworked attr is not present in the search filter.
    Hope this helps
    -Sylvain

  • Looking for Regex library to generate valid/invalid String

    Hi-
    My project use MDA (domain object are specified from an XML file) and we generate the domain, transfer object, DAO, services and controllers, flex controller, flex services and flex .as files.
    Now we want to generate the Unit Test Case. Of course, we can't cover everything. What we can cover is most domain fields validation, such as length, max value, min value and perhaps regex matching.
    So, what I'm looking for is a library that allow me to generate a valid and invalid String based on a given Regex pattern. So far, I have found Google Xeger, which only allow me to generate valid String based on the Regex pattern. I'm also looking for a library that will allow me tpo generate invalid String for a given regex.
    Anyone know of such library. I really don't want to parse the Regex to come up with an invalid String (as I am not strong in Regex).

    T.PD wrote:
    915826 wrote:
    My project use MDA (domain object are specified from an XML file) and we generate the domain, transfer object, DAO, services and controllers, flex controller, flex services and flex .as files.
    Now we want to generate the Unit Test Case. What do you think you're going to check with a <b>generated UnitTest</b>?
    The only thing you can check is the that your Code Generator generates a bunch of Classes (the Tests) the same way like another bunch of Classes (the production code). So unless you wrote the Code Generator: What does a generated Test tell you about the corerectness of your Domain Model?
    IMHO generated tests are nothing more than a placebo...
    bye
    TPDYou are correct, but it probably doesn't matter. Plenty of people create (or in this wacky case: generate) unit tests because it is company policy that unit tests are there, not because you write them to support your development efforts.
    Example: the company I work for has a whole legion of "PL/SQL developers". In other words: people who write endless amounts of SQL procedures. Company policy goes in effect: all code should be covered by unit tests. Result: unit tests that insert a record and then check if the record is inserted. Unit test that updates a record and then checks if the record is updated. I try to explain to such people: you can be pretty sure the database works, you don't need to unit test it. Blank stares.

Maybe you are looking for

  • Hp officejet pro 576 prints but won't scan

    Friends, We recently bought and installed an HP Office Jet Pro x576 dw.  After initial setup, it seemed to work fine.  Shortly afterwards, however, the scanning to computer feature has failed.  Here is what I have tried so far: I uninstalled and rein

  • Firefox 4.0 no "manage bookmarks" no import html bookmarks?

    When I go to your help files the answers are for versions prior to 4.0 In 4.0 there is no "manage bookmarks" selection on the menu. I want to import .html bookmark lists and .nab but all that comes up is IE.

  • Animation not displaying properly in Firefox

    My animation not displaying properly in Firefox. I have searched this forum and others but am only able to find outdated solutions (such as updating to the latest release of Animate). I am on the most current versions of Animate and Firefox and still

  • SAP BC

    Hi All, I am new to SAP Business Conneters... Tell me Difference between the XI and SAP BC. Thanks and Regrds Reddy

  • Why cant I use postmaster@ and abuse@ in /etc/postfix/virtual with success?

    I'm trying to configure two entries in /etc/postfix/virtual for postmaster and abuse for ALL virtual domains. On a debian box I have running postfix, I can do this easily with: abuse@ recipientShortName postmaster@ recipientShortName When I do this o