Data dodania Pytanie
2018-02-15 22:02 Use backreference in named capture group »
Is there a way to use a backreference to a previous capture group as the name of a named capture group? This may not be possible, if not, then that is...
(2) odpowiedzi
2018-02-14 10:02 Looking for specific regex »
I've been looking to create a regex for my specific situation. The furthest i've come with my own limited knowledge of Regex and by searching on Stack...
(3) odpowiedzi
2018-02-11 13:02 oracle regex_like function failing in java »
I do have one query where I need to use regex_like(user_id,'^.+EMP\d?$'). It is perfectly working fine from my SQLDeveloper and giving me the desired ...
(3) odpowiedzi
2018-02-10 15:02 Regex to remove line from css file »
I'm trying to remove include statements from a css file. So given a css file like @import url("css1.css"); @import url("css2.css"); @import url("css3...
(1) odpowiedzi
2018-02-09 07:02 Why do Unicode characters prevent character classes from working in subsequent regexp matches in Ruby 2.4? »
I came across a strange bug in Ruby. In Ruby 2.4.2, matching against a string containing a Unicode character caused subsequent matches to fail. Here'...
(0) odpowiedzi
2018-02-09 02:02 Difference between Kotlin and Java String split with Regex »
If we have a val txt: kotlin.String = "1;2;3;" and like to split it into an array of numbers, we can try the following: val numbers = string.split(";...
(1) odpowiedzi
2018-02-08 14:02 Oracle SQL - Regular Expression matching using REGEXP_REPLACE() »
Good morning, I am hoping to find assistance with writing a select query to remove some text from a column. I have created a column called "TEXT_MI...
(2) odpowiedzi
2018-02-06 17:02 Regular expressions - different string the same match »
I understand that the pattern r'([a-z]+)\1+' is searching for a repeated multi character pattern in the search string but I do not understand why in c...
(2) odpowiedzi
2018-02-04 18:02 Prevent backtracking on regex to find non-comment lines (not starting with indented '#') »
I'd like to search for lines that don't start with a pound sign (#) on indented code. Currently, I'm using the regex ^\s*([^\s#].*) with multiline op...
(2) odpowiedzi
2018-02-02 19:02 How can I use Regex to find a string of characters in alphabetical order using Python? »
So I have a challenge I'm working on - find the longest string of alphabetical characters in a string. For example, "abcghiijkyxz" should result in "g...
(5) odpowiedzi
2018-02-02 10:02 Regex to validate entire multiline text in angularjs »
I need some help. I have to construct a regex for angularjs ng-pattern attribute. The regex has to validate a text, not each line or some pieces. Th...
(4) odpowiedzi
2018-01-31 19:01 Parsing text files with "magic" values »
Background I have some large text files used in an automation script for audio tuning. Each line in the text file looks roughly like: A[BANANA] + B[...
(5) odpowiedzi
2018-01-31 16:01 Why am I getting white spaces before and after every single character when using regexp_replace? »
I am trying to replace all special symbols with a space (' '). What I have thus far is: select regexp_replace(column_name, '-|"|~|!|(|)|-', ' ') fro...
(3) odpowiedzi
2018-01-30 12:01 Get small amout of text out of large text present in database using laravel »
In my laravel project, I have a database column called description(datatype:Text). I want to fetch only 2 lines of text out of all. How can i achie...
(1) odpowiedzi
2018-01-29 16:01 Regex or split in python for shell awk equivalent »
I've a agent version file that I need to parse to get the application version details. The (example) contents of version file /opt/app_folder/agent_ve...
(4) odpowiedzi
2018-01-29 15:01 Simple regex that performing very long on Ruby »
I have simple Ruby regex that performing very long: "fußball "*20 =~ /^([\S\s]{1000})/i If I remove /i flag it works very fast. Why is it performi...
(0) odpowiedzi
2018-01-25 11:01 How to skip a column? »
I have textual table: 13.5 0.12557 0.04243 -0.0073 0.00377 14 0.12573 0.05 -0.00697...
(1) odpowiedzi
2018-01-25 00:01 Extract database provider's delimiters from a regular expression »
I have an opened connection with ADO.Net and I'am retrieving the datasource Information. The connection can be SQL Server, Oracle, MySQL, ODBC... Whe...
(1) odpowiedzi
2018-01-22 14:01 Splitting names that include "de", "da", etc. into first, middle, last, etc »
I want to split Brazilian names into parts. However there are names like below where "de", "da" (and others) that are not separate parts and they alwa...
(9) odpowiedzi
2018-01-20 18:01 Python - match and parse strings containing numeric/currency amounts »
Say I have the following strings (inputs) in python: 1) "$ 1,350,000" 2) "1.35 MM $" 3) "$ 1.35 M" 4) 1350000 (now it is a numeric value) Obviousl...
(3) odpowiedzi
2018-01-19 23:01 How to extract content within square brackets in ruby »
I am trying to extract the content inside the square brackets. So far I have been using this, which works but I was wondering instead of using this d...
(2) odpowiedzi
2018-01-19 20:01 `re.sub()` in pandas »
Say I have: s = 'white male, 2 white females' And want to "expand" this to: 'white male, white female, white female' A more complete list of cas...
(3) odpowiedzi
2018-01-18 20:01 Validate User Date Input in Ruby »
I am trying to validate proper date input in my ruby script. However, though the REGEX seems setup right, when I run the script it just asks for the d...
(1) odpowiedzi
2018-01-18 12:01 How to make a regex for capturing one symbol only, but with restrictions? »
I need a regex for javascript that allows me to select a single character with a restriction: that it does NOT have a specified character besides itse...
(2) odpowiedzi
2018-01-17 16:01 Why scala.util.matching.Regex 'apparently' fails in Scala extractors? »
I'm using Scala extractors (i.e.: Regex inside in a pattern mathing) in order to identify doubles and longs, like shown below. My question is: why Re...
(2) odpowiedzi
2018-01-16 06:01 Treat an emoji as one character in a regex »
Here's a small example: reg = ur"((?P<initial>[+\-👍])(?P<rest>.+?))$" (In both cases the file has -*- coding: utf-8 -*-) In Python ...
(4) odpowiedzi
2018-01-16 01:01 How to ignore some words inside string when using preg_replace »
What i'm trying to do is $var = "[h1]This is Just a text, [h1]and this inside it[/h1] This just example[/h1]"; $output = preg_replace("/\[h1\](.*?)\...
(2) odpowiedzi
2018-01-15 08:01 Pandas select columns with regex and divide by value »
I want to divide all values in certain columns matching a regex expression by some value and still have the complete dataframe. As can be found here:...
(3) odpowiedzi
2018-01-14 08:01 "Backtracking over a recursion" in PCRE »
https://www.regular-expressions.info/recursebacktrack.html Section - "Palindromes of any length in Perl and Ruby" http://prntscr.com/i06qas "PCRE, ...
(1) odpowiedzi
2018-01-12 21:01 input pattern='[a-zA-Z]' is not working in React application »
What I have been working on is a text input that narrows down <option> in a <select> as the user types. It is working, but my concern now ...
(2) odpowiedzi
2018-01-11 20:01 Regex find string not found in group a or not found in group b »
I am trying to find cfml variables (identified by #anyvariable# ) within a SQL statement that are not already within a cfml <cfqueryparam> tag a...
(1) odpowiedzi
2018-01-11 19:01 Regex to include latin characters »
I have a Regex to ensure a Password has upper and lowercase characters and limited to a few symbols: ^(?:(?=[^a-z]*[a-z])(?=[^A-Z]*[A-Z])(?=.*[$@$!%*...
(1) odpowiedzi
2018-01-10 13:01 Rails number_to_percentage and sub weird behaviour »
I'm trying to replace big % numbers to shorters versions (10000% -> 10k%). Generally code works, but if number_to_percentage used it stop working (wit...
(2) odpowiedzi
2018-01-06 23:01 Python self generating variables? »
I'm writing a program which reads a big .txt file with lotto numbers. This means that there are always 7 int in one array. (6 from 49 and last one is ...
(4) odpowiedzi
2018-01-05 22:01 Detect if html string contains javascript »
I need to sanitize my input html string against any javascript traces (including events) to prevent the xss injection. Is there any .NET library or de...
(0) odpowiedzi