Question: I am not a Regex expert and I am looking for a Regex that will return the value after consecutive comma on the same row.

The data looks like this:

```
2016/02/19 04:25:56,User,0.9,0,0,0,0,0.0
2016/02/19 04:25:58,User,0.0,0,0,0,0,0.0
2016/02/19 04:25:58,User,0.0,0,0,0,0,0.0
2016/02/19 04:25:57,User,0.0,0,0,0,0,0.0

```

And I can only manage to split this off after the first command which is the date and time. Here is the Regex I am using:

```
\.*User.*( ? : \d * \.) ? \d +

```

Answer: 
try this:

```
@echo off

for %%a in (%*) do (
    call set "%%~1=%%~2"
    shift
)

echo :%--user%
echo :%--pass%

```

if the passed it is called like:

```
namedArgs.bat --user user --pass pass

```

the output will be like:

> 
> :user
> 
> 
> :pass
> 
> 
> 

This will handle also quoted parameters with spaces in them.
Thing you are looking for is called 'Named Arguments'. I found link for same question [here](https://stackoverflow.com/questions/5215729/is-there-a-way-to-pass-parameters-by-name-and-not-by-order-to-a-batch-bat-f). 

Answer Which I like from that link is as follow:

```
set c=defaultC
set s=defaultS
set u=defaultU

:initial
if "%1"=="" goto done
echo              %1
set aux=%1
if "%aux:~0,1%"=="-" (
   set nome=%aux:~1,250%
) else (
   set "%nome%=%1"
   set nome=
)
shift
goto initial
:done

echo %c%
echo %s%
echo %u%

```

Run the following command:

```
arguments.bat -c users -u products

```

Will generate the following output:

```
users
defaultS
products

```