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
In statistics Correlation Matrix, what does Root.M.Sqr mean? Also, how can I explain it for a...
In statistics Correlation Matrix, what does Root.M.Sqr mean? Also, how can I explain it for a sample? Thanks, Jennie
what does it mean: for i=1:length(t) h(i) = hat(t(i)); end how do I read it? I...
what does it mean: for i=1:length(t) h(i) = hat(t(i)); end how do I read it? I have difficulties with the interpretation but I know is a hat function.
NO DATA YET-NOT SURE ON HOW TO DO IT-STARTING WITH HOW DO I ATTAIN THE DATA?...
NO DATA YET-NOT SURE ON HOW TO DO IT-STARTING WITH HOW DO I ATTAIN THE DATA? WHAT AREAS? Develop your own questionnaire/survey to collect data on a two variables of interest. One variable of interest should be used to estimate a population mean (quantitative) and the other should be used to estimate a proportion (qualitative). Topic 1: Population mean - For one of the variables of interest (Quantitative): ● Present the data you used  ○ Use appropriate displays (graphs) of the...
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
1) How do we mean about the term "LOVE"? What does this mean to you? 2)...
1) How do we mean about the term "LOVE"? What does this mean to you? 2) What is the difference between romance and companionate love?
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)