not able to split string using regex in groovy -


Using iam, the following code is not able to split the string using regex

 < Code> string [] splitedEmail = email.split (/ \\ n \; \, \ s /);   

is giving it the same

You probably want To wrap it in a square class, [] :

  string [] splitedEmail = email.split (/ [\ n ;, \s] /)    

Comments

Popular posts from this blog

c# - passing input text from view to contoller with FacebookContext using Facebook app -

ios - Does Core Data autoupdate a many to many relationship on saving -

Calling a C++ function from C# by passing a string with variable size to it -