Tuesday, April 19, 2011

String to Validate only Numbers [Regular Expression is AX 2009]


Following is an Example of Regular Expressions :

static void TextBuffer_regularExpression(Args _args)
{
    TextBuffer txt = new TextBuffer();
    str msg = "98797897";
    ;


    txt.setText(msg);
    txt.regularExpressions(true);   // activate regular expr in search


     // Regular expression to validate only digits
     if (txt.find("^[0-9]+$"))
    {
        info("string contains only numbers");
    }

}

2 comments:

  1. IGT unveiled Megabucks in 1986 as the primary progressive jackpot and shortly after a flurry of progressives have been introduced into the market. Every time you push down on the ‘spin’ button on a bodily slot machine or an online slot, you take management in a means that your brain views as constructive. Each time you press the button, 토토사이트 the visible whirlwind of colours and shapes in entrance of your eyes launch Dopamine in your brain. While deployed abroad, service members are sometimes isolated, separated from friends and family and obtain elevated pay. For these looking for recreation on base, slot machines are sometimes only a quick walk away.

    ReplyDelete
  2. Thor Slots offers no deposit bonus, however present gamers may receive just rewards based on their gaming expertise. Setting aside just some amongst all the best free slot titles available here isn't simple, we've to admit. We have many video games available to play, which most likely to|are inclined to} have totally different distinctive elements - however here we are compiling a list with the highest 10 free online https://xn--o80b910a26eepc81il5g.co/ slots for you.

    ReplyDelete

Thanks for your time reviewing this blog.