I have this user price input that I want to allow 0, 1 or 2 decimal digits.    I'm using comma for decimals. I'm not using nor allowing thousand separators.   QUESTION:  I want to replace the input if the user enters a third decimal digit.  S...
I want to split string  'something.somethingMore.evenMore[123].last'   to  ['something', 'something.somethingMore', 'something.somethingMore.evenMore[123]', 'something.somethingMore.evenMore[123].last']   I can...
I have a string that contains single, double, and escaped quotations:     Telling myself 'you are  \'great\' ' and then saying "thank you" feels "a \"little\" nice"   I would like a single regex to pull out:...
I have a date in the following format:     October 4, 2019 10:30 am   This date needs to be broken apart into the month, day, year and time. Where the time is optional. So in other words, this should also be valid:     October 4, 2019   Unfortunately...
I am trying to write regex to match below of array words in page URL  e.g.  array = [schools,years,school,year,school-class,school-year,school-class-year,school-year-class,year-school, year-school-class]  Page url pattern  http://www.google.com/searc...
I'm doing a Romanian hyphenation script.  Previous question (solved) is here: regex if capture group matches string in case you want to take a look This is a regex that deal with vowels that are not diphthongs or triphthongs:  (?:[aeiou])(?=[aeio...
I just want if someone type 10.01.1 then it will be 10.011 & if someone type something like 10.00............1 it will become 10.001  I have tried this .replace(/(\d*)(\.){1,1}(\d*)(?=(\.)+)/g,'$1'). But it's not working for me...
First off, don't link to the "Don't parse HTML with Regex" post :)  I've got the following HTML, which is used to display prices in various currencies, inc and ex tax:  <span id="price_break_12345" name="1">...
The String.prototype.replace() method documentation says:     Specifying a string as a parameter      The replacement string can include the following special replacement patterns:         $$: Inserts a "$".   $&: Inserts the matched subs...
I have situation where I have to split the string in to 3 substrings.  Example   <=Mindate+30 >>> [<=,Mindate,+30] <=Mindate  >>>  [<=,Mindate] >=Maxdate-3 >>> [>=,Maxdate,-3] ==Date  >>>  [==,Dat...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.