Related
Wandering monk: I have several datasets of strings in which I want to replace certain character combinations using regex replacement. I've tried multiple modes and none of them helped. Can someone point me to the correct pattern? E.g: hello, [cicuyuv v,] imijm
comet: I need to write a long string (4324 characters) and use StringBuffer for this purpose. Most of the string will be spaces, but some parts will contain orderdetails. They have to appear somewhere. This string will be entered into the billing system. I'm i
Bao Zan Suppose I have a file likeMichael is studying at the Faculty of Economics at the University and I need to check if a given string contains the following expression:Facul* of Econom* An asterisk indicates that the word can have many different endings Us
Wabaf I'm trying to write a regular expression that will select certain parts of a string and ignore the rest I have a text below and want the regex to extract the string """ from all lines the text to select """ (ignoring spaces) and ignore the rest of the st
username I can't find a proper way to remove substrings that are case-insensitive equal to "null" and replace a huge input data string (with many lines and uses) with an empty string ; as a delimiter. To simplify, here is an example of what I'm looking for: in
Terry I have a simple regex pattern and a string. The regex pattern is (\d*)\*(C.*), the string is 32*C1234*3. I want to extract the value 32and C1234*3pattern from the string using regex. I can achieve that in Perl using the following code: my $x = "32*C1234*
Kimmamir I want to capture strings using this regex: ^([\d]_[a-z|A-Z]+_test)$
So it will capture something like:1_mytest_test However, if the string is inside another string like: results.1_mytest_test.=fail, more info
There are no matches. I thought the ^su
comet: I need to write a long string (4324 characters) and use StringBuffer for this purpose. Most of the string will be spaces, but some parts will contain orderdetails. They have to appear somewhere. This string will be entered into the billing system. I'm i
Technology Network I am looking for the pattern I wish to replace the string in (), [] . This must be done at the beginning and end of the string. I use this pattern. \([^)]*\)
This replaces the string everywhere E.g. Original
comet: I need to write a long string (4324 characters) and use StringBuffer for this purpose. Most of the string will be spaces, but some parts will contain orderdetails. They have to appear somewhere. This string will be entered into the billing system. I'm i
Wandering monk: I have several datasets of strings in which I want to replace certain character combinations using regex replacement. I've tried multiple modes and none of them helped. Can someone point me to the correct pattern? E.g: hello, [cicuyuv v,] imijm
Wandering monk: I have several datasets of strings in which I want to replace certain character combinations using regex replacement. I've tried multiple modes and none of them helped. Can someone point me to the correct pattern? E.g: hello, [cicuyuv v,] imijm
Anita I am trying to match substrings using regular expressions. An example of the substring I get is: "{{simple-array.text}}{{simple-array.option}}". Using the following pattern: {(.*?)}, I get the following two matches: {{simple-array.text}and {{simple-array
atomic bomb I have an array
Array
(
[0] => "http://example1.com"
[1] => "http://example2.com"
[2] => "http://example3.com"
...
)
I want to replace the httpwith of each element using RegEx https. I tried: $Regex = "/http/";
$str_rpl = '${1}s';
Jadi I'm looking for a more pythonic way to replace placeholders of known length in a string with values from a list. They should be replaced in sequence and should only be used once. For example, use the following values: replaceVals = ['foo', 'bar']
origStr
username I can't find a proper way to remove substrings that are case-insensitive equal to "null" and replace a huge input data string (with many lines and uses) with an empty string ; as a delimiter. To simplify, here is an example of what I'm looking for: in
atomic bomb I have an array
Array
(
[0] => "http://example1.com"
[1] => "http://example2.com"
[2] => "http://example3.com"
...
)
I want to replace the httpwith of each element using RegEx https. I tried: $Regex = "/http/";
$str_rpl = '${1}s';
Anita I am trying to match substrings using regular expressions. An example of the substring I get is: "{{simple-array.text}}{{simple-array.option}}". Using the following pattern: {(.*?)}, I get the following two matches: {{simple-array.text}and {{simple-array
SSilk Using Powershell, I know how to use regular expressions to search a file for a complex string and replace it with some fixed value, as shown in the following code snippet: Get-ChildItem "*.txt" |
Foreach-Object {
$c = ($_ | Get-Content)
$c = $c
raymx007 I am trying to learn regular expressions in Java. So far I've been trying some small challenges and I'm wondering if there is a way to define the nth character. For example, let's say I have this string: todayiwasnotagoodday If I want to replace the t
comet: I need to write a long string (4324 characters) and use StringBuffer for this purpose. Most of the string will be spaces, but some parts will contain orderdetails. They have to appear somewhere. This string will be entered into the billing system. I'm i
Wandering monk: I have several datasets of strings in which I want to replace certain character combinations using regex replacement. I've tried multiple modes and none of them helped. Can someone point me to the correct pattern? E.g: hello, [cicuyuv v,] imijm
Benjamin Song I'm struggling with the concept of replacing substrings in a string. This particular exercise does not expect you to use <string.h>the built-in functions in or <strings.h>. Given a string consisting of the following two lines: "Mr. Fay, is this g
comet: I need to write a long string (4324 characters) and use StringBuffer for this purpose. Most of the string will be spaces, but some parts will contain orderdetails. They have to appear somewhere. This string will be entered into the billing system. I'm i
Anita I am trying to match substrings using regular expressions. An example of the substring I get is: "{{simple-array.text}}{{simple-array.option}}". Using the following pattern: {(.*?)}, I get the following two matches: {{simple-array.text}and {{simple-array
username I can't find a proper way to remove substrings that are case-insensitive equal to "null" and replace a huge input data string (with many lines and uses) with an empty string ; as a delimiter. To simplify, here is an example of what I'm looking for: in
Terry I have a simple regex pattern and a string. The regex pattern is (\d*)\*(C.*), the string is 32*C1234*3. I want to extract the value 32and C1234*3pattern from the string using regex. I can achieve that in Perl using the following code: my $x = "32*C1234*
Jadi I'm looking for a more pythonic way to replace placeholders of known length in a string with values from a list. They should be replaced in sequence and should only be used once. For example, use the following values: replaceVals = ['foo', 'bar']
origStr
Anita I am trying to match substrings using regular expressions. An example of the substring I get is: "{{simple-array.text}}{{simple-array.option}}". Using the following pattern: {(.*?)}, I get the following two matches: {{simple-array.text}and {{simple-array