I want to split this String: 5+(4/2)-4+1+(4%3)!=23+(3*5) into a list , using regex. The output should be: [5 , + , ( , 4 , / , 2 , ) , - , 4 , + , 1 , + , ( , 4 , % , 3 , != , 23 , + , ( , 3 , * , 5 , ) ] NOTE : My problem exactly is with the not equ
From this string: "/resources/pages/id/AirOceanFreight.xhtml" I need to retrieve two sub-strings: the string after pages/ and the string before .xhtml. /resources/pages/ is constant. id and AirOceanFreight varies. Any help appreciated, thanks!I
I have a string like: "GOOG",625.00,"-1.95 - -0.31%" I'm using this pattern, and it isn't matching. I'm trying to get GOOG. What am I doing wrong? Pattern pattern = Pattern.compile("^\"([^\"]+)"); Matcher matcher =
I've try to replace this <?= T_('XXX'); ?> for this {{ T_('XXX') }}, I've try this <\\?= \\([^\\?]+\\) *\\?> -> {{ $1 }} and can't make it work. What regex and replacement should I use. PS: is there online Regex tool for Emacs, there is lot
How to parse this string with fomat as below to array or anything that can access each string by index? "[\"string 1\",[\"string 2\",\"string 3\"],\"string 4\"]" // to array_1 "[[\"string 5\"
I have the following string that I am trying to split: "03/04/1987", "Joseph", "Sam", "F", "12/09/1976", "Saram", "Mary", "M","08/10/1969", "Shik", "S
How to parse this JSON using Newton Soft I tried but gives me null as my modal should have class 1, 2, 3 ... but that's dynamic .So getting confuse. Appreciate your help ! { "data": { "1": { "test": { "col1": "
I have some string, they looks like: div#title.title.top #main.main a.bold#empty.red They are similar to haml, and I want to split them by regex, but I don't know how to define it. val r = """???""".r // HELP val items = &quo
I had like to pass the following string via Regex to extract the domain name and the numeric value next to ms. stackoverflow.com : [0], 96 bytes, 223 ms (223 avg, 0% loss) I need: stackoverflow.com , 223 Any help will be much appreciated.Use followin
http://services.tvrage.com/tools/quickinfo.php?show=Chuck I'm trying to parse that info, for example, get the Airtime, Airtime@Monday at 08:00 pm I want to get what's after "Airtime@" till the end of the line, to just come out with "Monday
how to make a RegEx to split the string like presently i am using this input=input.match(/\w+|"[^"]*"+|(([^)]+))+/g); input1: ("java") AND ("operating systems" AND "c" AND c++) but output is:"java",AN
This question already has an answer here: How do I get the file name from a String containing the Absolute file path? 9 answers I'm trying to slpit the string /home/user/test.dat I use String[] split = file.split("(?!.*/)"); but split[1] only re
I have a string as shown below in my C# app. Multiply(Sum(3,5,4), Division(4,5,5), Subtract(7,8,9)) Sum(), Division(), Subtract() are different different methods inside the Multiple(). Is there any way to get each one seperately like Sum(3,5,4), Divi
I have a string that looks like this "21 4\n21 2 _ _ 19 11\n 12 _ _ 1 _ _\n_ _ _ 7 13 _" (there is a blank space between 21 and 4, 21 and 2, 2 and _, etc) I would like to loop through it, extract each number, character _ or \n. (basically split