How to find a sequence of 3 characters, 'abb' is valid while 'abbb' is not valid, in JS using Regex (could be alphabets,numerics and non alpha numerics).  This question is a variation of the question that I have asked in here : How to...
I have a situation where I have text which contains URL links. The links are in 2 forms   www.stackoverflow.com <a href="http://www.stackoverflow.com">Stack over flow</a>   I am trying to create a simple function that uses regex t...
I need to match strings that don't contain a keyword (beta2) at an arbitrary position.  Consider:  var aStr    = [                 '/beta1/foo',                 'beta1/foo',                 '/beta1_xyz/foo',...
I have a requirement wherein I have below requiements to validate a name field:   don't allow following symbols: &(¥)*/+}{¿?¡_^~¨¬;:@!"#&\|-' can´t contain numbers can´t contain blank spaces at the begining or at the end...
I need to match every line that starts or ends with a single asterisk character without any other asterisk in between.  1.- foo BAR, FOO1*  2.- *FOO, bar% foo  3- *foo). BAR", fOo*  4.- **foo BAR foo  5.- *foo bar foo**  6.- foo bar * foo  7.- fo...
I need to select all classes names in a css file, I am just new at it, also if someone can advice some good online tutorials for regex is appreciated.  Regex will be used in JavaScript  I came with this which works for simple classes: /(?<=\.).+?(...
I am trying to create a regex for addresses.   I currently have [a-zA-Z0-9-\\.\-\,\\-\s\n], but it matches the repeating period, repeating hyphen, and repeating comma.  Is there any way I could limit the count of comma, hyphen, and period to 1?  It s...
I want to replace all line breaks but only if they're not preceded by these two characters {] (both, not one of them) using JavaScript. The following expression seems to do the job but it breaks other regex results so something must be wrong:  /[...
Trying to come up with a process in JavaScript to help convert custom date formats between different tech stacks so they all parse and display everything the same way.  I'm having trouble coming up with a good RegEx to convert,  "dddd, dd/MM/...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.