[Solved] Simple regular expression to determine login and password from a line


Why not just split/explode on ; and get the relevant pieces?

If you insist on a regex, just use this:

/;(.*?);;(.*)/

The first subpattern will be the username, the second subpattern will be the password.

solved Simple regular expression to determine login and password from a line