Welcome to Jonic Developer Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

Recent questions tagged regex

0 votes
610 views
1 answer
    What is fast and succinct way to match lines from a text file with a matching first field. Sample input: a|lorem b|ipsum b|dolor c|sit d|amet d ... too much content into memory. I need a streaming method. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    I have the following data in a csv file: from StringIO import StringIO import pandas as pd the_data = """ ABC,2016-6-9 0:00,95,{'//PurpleCar': [115L], ' ... ("{") and after the closing curly brace ("}"). See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    I want to remove all superscript and subscript chars from the text. Exp: '?'. I found an example on stackoverflow, but it only considers superscript numbers ... one by one but that is a bit impractical. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
913 views
1 answer
    I need to write a solution in JavaScript to replace all the characters in a string with a *, except for the first and last characters. I'm not very ... log(censored) Any ideas on how I can achieve this? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
596 views
1 answer
    what the regular expression of a line of string containing ONLY float numbers separated with spaces or tabs. The float number can be negative, like -999.999 See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
601 views
1 answer
    I'm trying to split a string in R (using strsplit) at some specific points (dash, -) however not if the dash are within a string in brackets ... with no brackets... Any help would be appreciated. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
438 views
1 answer
    How do you remove the , and spaces between strings in java? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
731 views
1 answer
    I run dir.create('./junk_data') file.create(paste('./junk_data/QWE',01:12,01:31,2005:2015,'.3',sep='')) file.create(paste('./junk_data/RTY',01:12, ... I want. I tried a few tutorials on regex, but no joy. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
757 views
1 answer
    for example: var str="<br>hi<br>hi"; to replace the last(second) <br>, to change into "<br>hihi" I tried: str.replace(/<br>(.*?)$/,1); but it's wrong. What's the right version? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
721 views
1 answer
    I am a newbie in powershell. I have a simple powershell script that just replace text but I found that the regex replace turn my multiline data ... here Have I missed something obvious? Thanks, Fadrian See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
757 views
1 answer
    As part of a Windows logon script (hence the VBScript requirement), I would like to set values in a user's Google Chrome preferences (stored in a ... Replace function, but my RegEx knowledge is limited. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
740 views
1 answer
    I have a lot of text simmilar to this Джамал Выбрать...АссистентБухгалтерВедущий специалистВладелецДокторДиректорЗаведующийЗам.директораГл.редакторГл.продавецГл.бухгалтерГен. ... wha tim looking for See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
534 views
1 answer
    I need a regexp to strip out just the domain name part of a url. So for example if i had the following url: http://www.website-2000.com the ... does to help me understand it that would be great. Thanks See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
564 views
1 answer
    I am currently trying to improve the readability of some of my python scripts by adding spaces around the equal signs. For example, currently an assignment ... not sure if this is the intended behaviour. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
597 views
1 answer
    Log file: INFO:werkzeug:127.0.0.1 - - [20/Sep/2018 19:40:00] "GET /socket.io/?polling HTTP/1.1" 200 - INFO:engineio: Received packet MESSAGE, ["key",{"data ... "data":{"tag1":12,"tag2":13,"tag3": 14"...}} See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
439 views
1 answer
    I'm trying to delete all non-letter chars (except white-space) from a string containing accents using Python 3.7. I tried the following: import re text = ... a string, but keep the accents on the chars? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
408 views
1 answer
    I'm strugling to make this work. At the moment my htaccess contains the following code: #Debugging - Error reporting php_flag display_startup_errors on php_flag ... domain.com/this-is-a-test/hello-there See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
503 views
1 answer
    There are many questions on this site on how to escape various elements for sed, but I'm looking for a more general answer. I understand that I might want ... ? It's perfect and it does all the things. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
510 views
1 answer
    This RewriteRule RewriteRule ^test/(.*)$ test.php?url=$1 On this URL mysite.com/test//one///two////three/// Is giving me this result $1=url ... or add a redirect to this behaviour? Thank in advance See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
633 views
1 answer
    I want to remove words of length less than 3 in a string. for example my input is str<- c("hello RP have a nice day") I want my output to be str<- c("hello have nice day") Please help See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
473 views
1 answer
    Regex.IsMatch( "foo", "[U00010000-U0010FFFF]" ) Throws: System.ArgumentException: parsing "[-]" - [x-y] range in reverse order. Looking at the hex ... formed with U split into two chars in the string? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
679 views
1 answer
    I'm making a search function for my website, which finds relevant results from a database. I'm looking for a way to count occurrences of a word, ... the number of such occurences within a single row? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
658 views
1 answer
    As far as I know in perl global '/g' flag means that search will replace/return all the matches throughout the string. But I am not able ... matching occurs only once. Can someone explain this behaviour. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
678 views
1 answer
    Case: ehello goodbye hellot hello goodbye ehello goodbye hello hello goodbye I want to match line 1 (only has 'hello' once!) DO NOT want to match line ... behind and what not... without any real success.. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
973 views
1 answer
    Having trouble with very simple thing, How to properly replace all < br> and <br> in the string with the empty space? This is what I'm trying to use, ... str.replace(new RegExp(find, 'g'), replace); } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
482 views
1 answer
    let's say I have two regexp's, /eat (apple|pear)/ /I like/ and text "I like to eat apples on a rainy day, but on sunny days, ... through the text every single time? EDIT: SOLUTION PREG_OFFSET_CAPTURE ! See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
515 views
1 answer
    UPDATE: Thanks for all the great responses! I tried many different regex patterns but didn't understand why m.matches() was not doing what I think it should be doing. ... ()); // <- change to m.group(1) See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
903 views
1 answer
    I have a string like this: one,two,3,(4,five),six,(seven),(8,9,ten),eleven,(twelve,13,14,fifteen) the above string should split into: one two 3 (4,five) six (seven) (8,9,ten) eleven (twelve,13,14,fifteen) See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
Ask a question:
Welcome to Jonic Developer Community for programmer and developer-Open, Learning and Share
...