metacharacters Questions
2
Solved
I'm using os.walk(directory) to show recursively all the files from that directory.
The thing is that i need to show only the files that contain an asked String in its name, and it has to manage me...
Triglyph asked 29/3, 2016 at 20:43
5
Solved
The . character in a PHP regex accepts all characters except a newline. What can I use to accept ALL characters, including newlines?
For example:
$text = <<<TEXT
foo
bar
TEXT;
preg_match('...
Feola asked 26/10, 2010 at 17:26
3
I have a large amount of data where the delimiter is a backslash. I'm processing it in R and I'm having a hard time finding how to split the string since the backslash is a metacharacter. For examp...
Crematory asked 1/6, 2012 at 4:21
2
For example, I set up these:
L = /[a-z,A-Z,ßäüöÄÖÜ]/
V = /[äöüÄÖÜaeiouAEIOU]/
K = /[ßb-zBZ&&[^#{V}]]/
So that /(#{K}#{V}{2})/ matches "ᄚ" in "azAZᄚ".
Are there any better ways of de...
Marlowe asked 19/4, 2013 at 9:39
1
Solved
In Ruby, I wrote a simple regex to find the first {:
txt.gsub! /^.*{/, '{'
Whenever I run this, everything past that point for my purposes works fine, however there is a mild error that reads al...
Collings asked 14/12, 2013 at 16:38
2
Solved
Is there a way of toggling the compilation or use of metacharacters when compiling regexes? The current code looks like this:
Current code:
import re
the_value = '192.168.1.1'
the_regex = re.co...
Millerite asked 22/11, 2013 at 2:35
2
Solved
Is there a way to use extended regular expressions(ERE) in a .gitignore file? For example I want to use the + repetition character in a .gitignore file. Is there a way to do that?
Contrast asked 28/3, 2013 at 1:22
1
© 2022 - 2024 — McMap. All rights reserved.