Jump to content

Recommended Posts

Posted

Hi.

I need to varify a string. So I just want to check, if the string uses valid characters.

Allowed characters are:

*

_

L

N

n

"any text with numbers in it"

'any text with numbers in it'

I tried it with

$validpattern = '[*_LNn]"(.*?)"'
$validpattern = $validpattern & "'(.*?)'"

but that does not work.

I really don't get those expressions....

May someone help me?

[font="Verdana"]In work:[list=1][*]InstallIt[*]New version of SpaceWar[/list] [/font]

Posted (edited)

Let me test... [Can't test here. AutoIt's broken.]

$validpattern = '([0-9][*_LNn])'
Edited by system24
[center]It's a question of mind over matter, if I don't mind, it doesn't matter.[/center]
Posted (edited)

No =(

_*_N*"text""

Seems valid to it, but the last " is not closed =((

Edited by GrungeRocker

[font="Verdana"]In work:[list=1][*]InstallIt[*]New version of SpaceWar[/list] [/font]

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...