ImpAKT Forum :: regexp not working

This thread was displayed: 0 times


Starting with 17th May 2007, Adobe Systems will stop offering support for any version of the discontinued InterAKT products. As a result, we will not answer to new support incidents starting with May 17th, 2007. Pending support incidents will still be followed in order to be closed. The product forums will remain open and be transformed in user-to-user forums. The general forums will be made read-only and not allow new posts or comments.

For more information about the affected products visit: www.interaktonline.com/Support/

View Threaded Show descending
B F
04-15-2007 01:36:43 GMT +2

To  prevent the @  character with a regexp -- only admitting numbers and alphabet characters for between 3 and 10 characters (though other special characters may need to be accounted for).

How should this be rewritten?

^[^@]*[0-9A-Za-z]{3,10}$

This does not do it:

\w{3,10}


Back | Reply | Quote | Top
Razvan Racasanu[InterAKT]Adobe Systems Romania staff
04-17-2007 18:50:18 GMT +2

Hello,

Try with this regexp:

^[a-zA-Z0-9]{3,10}$

This needs to be entered from the code view, as currently a backslash is incorrectly added before the $.

Regards,
Razvan RACASANU

Reply | Quote | Top
© Adobe Systems Romania. All rights reserved.