Is it possible to create a regular expression with a variable number of groups? After running this for instance... Pattern p = Pattern.compile("ab([cd])*ef");
I have this code var message_regex = /^.{10,500}$/; I want the user to enter a minimum of 10 characters, But it doesn't matter how much words I enter my err
I would like to remove all leading and trailing spaces. As well as replace multiple spaces with a single space within a string, so that all words in a string ar
I have a long list of publications saved as a single column in a data frame. I'd like to generate a network of a short subset of co-authors that have contribute
In the following string, Jason <[email protected]> how can I extract the part inside the angle brackets? I tried <\w> and it didn't work. Ideas
I'm working on VCF files for some purpose. I got a whole collection of contacts in a single VCF file. But I want to extract each contacts separately from the fi
How can I ignore characters other than [a-z][A-Z] in input string in python, and after applying method what will the string look like? Do I need to use regular
Have a regex: .*? (rule1|rule2) (?:(rule1|rule2)|[^}])* (It's designed to parse CSS files, and the 'rules' are generated by JS.) When I try this in IE, all
I need convert a currency string to decimal for storage it in a database of type "decimal (9,2)". Example: 0 => 0.00 1 => 1.
Have I missed a standard API call that removes trailing insignificant zeros from a number? var x = 1.234000; // to become 1.234 var y = 1.234001; // stays 1.234
### Ruby 1.8.7 ### require 'rubygems' require 'oniguruma' # for look-behind Oniguruma::ORegexp.new('h(?=\w*)') # => /h(?=\w*)/ Oniguruma::ORegexp.new('(?&
Below is my golang code. Each time validate method is called my compile method gets executed. I want to compile only once, not each time we call validate. 1)
I am using a third-party app that allows me to log in my day, time and location at the push of a button, on a google sheet. (source: imggmi.com) While the app c
For example: My string is: 123456789 nn nn oo nn nn mlm nn203. My target is: nn. Then, I match string from the end to the beginning and return the first ma
I need to replace the unicode characters defined on here I have got this so far but it seems to remove all space including standard spacebar ones: var str = "
I need to replace the unicode characters defined on here I have got this so far but it seems to remove all space including standard spacebar ones: var str = "
I need to replace the unicode characters defined on here I have got this so far but it seems to remove all space including standard spacebar ones: var str = "