Question

how do I explain this and what does it mean. []data=clearformula.split("(?<=[-+*/])|(?=[-+/])");

how do I explain this and what does it mean.

[]data=clearformula.split("(?<=[-+*/])|(?=[-+/])");

Homework Answers

Answer #1

Consider this regular expression: "(?<=[-+*/])|(?=[-+/])"

This will produce: [ +, -, *, / ]

In text/string "clearformula", whenever i will find either of "-", "+", "*" or "/"

It will split the string into two parts & will store in the list named "data"

******************************************************************************************
PLEASE LIKE IT RAISE YOUR THUMBS UP
IF YOU ARE HAVING ANY DOUBT FEEL FREE TO ASK IN COMMENT SECTION
******************************************************************************************

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
i want to know what does model fit mean & how to put it?
i want to know what does model fit mean & how to put it?
Explain what does amphiphilic mean and how it relates to proteins and gums.
Explain what does amphiphilic mean and how it relates to proteins and gums.
1. What is the P50? What does it mean if the P50 is lowered? Raised? I...
1. What is the P50? What does it mean if the P50 is lowered? Raised? I dont really understand how a lowering P50 decreases oxygen binding in hemoglobin (and visversa), could you please explain. Thankyou
How do I find the mean and the ungrouped mean on a calculator and by hand?
How do I find the mean and the ungrouped mean on a calculator and by hand?
What does comparative advantage mean? How do you calculate comparative advantage?
What does comparative advantage mean? How do you calculate comparative advantage?
What does entrepreneurship mean? Why do you think learning about entrepreneurship is important? How does this...
What does entrepreneurship mean? Why do you think learning about entrepreneurship is important? How does this course benefit ?(entrepreneurship)
What does the term electromotive force mean? What is the definition of a volt? What does...
What does the term electromotive force mean? What is the definition of a volt? What does the term cell potential mean? How do all of these relate, I am just starting this area within my course and my teacher told me to brush up on my knowledge but I have no idea where to start. I have tried looking online but it is too complicated for me, a simple explanation and maybe some links would do the trick? Or a...
How do I find a mean and median of a histogram?
How do I find a mean and median of a histogram?
How do you construct an inductive proof? What does it mean for a set to be...
How do you construct an inductive proof? What does it mean for a set to be closed under an operation? What is set union? What is set intersection? What is another name for the intersection of all inductive sets?
in linear regression what does reference class mean and how do you determine it with a...
in linear regression what does reference class mean and how do you determine it with a model of just first order terms?