Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

194
Views
split the string with space , starts with paranthesis using javascript

Can someone help with below ,

I have a string with

var str = "func(1,2) and func(3,4) and (func(5,6) and func(7,8))";

How we can achieve below outputs for above string?

[func(1,2), and, func(3,4), and , (func(5,6) and func(7,8))]

[func(1,2), func(3,4), func(5,6), func(7,8)]

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Is that what you are looking for ?

var str = "func(1,2) and func(3,4) and (func(5,6) and func(7,8))";
var result = str.replaceAll("and ", "").split(" ")
console.log(result)

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!