thiaguerd (thiago feitosa)
- Login: thiaguerd
- Registered on: 08/09/2019
- Last sign in: 08/09/2019
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 1 | 1 |
Activity
08/10/2019
-
11:30 PM Ruby Misc #16091: gsub
- alanwu (Alan Wu) wrote:
> `gsub(pattern, replacement)` always interprets `replacement` as a regex replacement directive.
> ...
Nice, tank you. -
12:24 AM Ruby Misc #16091: gsub
- #### on Python 3.7.1
```python
import html
def r():
a = input('Enter original:')
b = input('Enter a pattern to replace:')
c = input('Enter a replacement:')
print(f"a: {a}")
print(f"b: {b}")
print(f"c: {c}")
c = ht... -
12:05 AM Ruby Misc #16091 (Open): gsub
-
12:04 AM Ruby Misc #16091: gsub
- ```ruby
include ERB::Util
def r
puts "Enter original"
a = gets.chomp
puts "Enter a pattern to replace"
b = gets.chomp
puts "Enter a replacement"
c = gets.chomp
puts "a: #{a}"
puts "b: #{b}"
puts "c: #{c}"
...
08/09/2019
-
10:47 PM Ruby Misc #16091: gsub
- shyouhei (Shyouhei Urabe) wrote:
> Really sorry that I have to say I don't understand this report at all. Please tell us about your problem a bit more in detail.
the replacement doesn't happen
try in python and see the diff
```
... -
10:10 AM Ruby Misc #16091 (Closed): gsub
- ```ruby
a = "test ?"
b = "?"
c = "\\&"
a.gsub(b,c)
```