regex - regular expression with javascript for second match -



regex - regular expression with javascript for second match -

i have complicated string. string next marked part: (second match)

example:

1;#firstname,, surname,#domain\account,#email.@company.com,#email@company.com,#firstname,, surname25;#firstname,, surname,#domain\account,#email.@company.com,#email@company.com,#firstname,, surname26;#helpdesk,#de\helpdesk,#helpdesk@vega.com,#,#helpdesk30;#...

i want sec "firstname,,surname" combination... ideas how this?

in illustration above need ignore finish first part starting 1;# 25;# , need "firstname,,surname" , after rest of string should ignored.

the numbers can different , length string...

i started not working:

((.*?[0-9]+.*?){2})[0-9]+

thanks in advance help.

you can utilize string split function , split var arry = yourstring.split(',') arry[9],arry[11] contain string.

javascript regex

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -