wildcard

extract values/renaming filename in python [closed]

随声附和 提交于 2019-12-11 14:51:33
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . I am trying to use python to rename a filename which contains values such as: ~test1~test2~filename.csv I want to rename the file to filename.csv. The tildes being my separator for the first two words, and I do

VB.Net - Use wild card in My.Computer.Registry.GetValue

杀马特。学长 韩版系。学妹 提交于 2019-12-11 14:46:36
问题 I have a VB.NET script that looks up the current version of java installed. Everything worked great until java 8 came out. Back in Java 7 i would do this. My.Computer.Registry.GetValue("HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment", "Java7FamilyVersion", Nothing) In Java 8 (Java8FamilyVersion) is gone and has replaced with (FullVersion). The problem is FullVersion is behind two more folders one with the version (18.0_25) Then another folder call MSI So here is the problem;

How can I wrap my subtitles in MS Word with some predefined tags

可紊 提交于 2019-12-11 14:31:28
问题 I have a MS Word documents, with all the subtitle in a different format (font size and bold). I want to wrap the subtitles with a tag like {subtitle}My Subtitle{/subtitle}. What I have come up now is this: Ctrl +H More Options => enable wildcards Format => choosing the appropriate format of the subtitle. Find what: (*{1,}) , Replace with {subtitle}\1{/subtitle} Replace All The problem is the current regex wrap every single word with the {subtitle} tag. But not wrapping the whole subtitle with

Xpath wildcard search

陌路散爱 提交于 2019-12-11 12:52:54
问题 I want to search within all nodes and all attributes for a specific text using xpath query. Example: <Employee> <Id>1</Id> <Info FirstName="Search" LastName="Smith"> <Address City="Search"/> </Info> </Employee> I am currently using the below xpath query: var nodes = xmlConfig.SelectNodes("//*[contains(@*,'Search')]"); Xpath query should return Info node and Address node. However, it only returns one node. 回答1: Assuming that you're using XPath 1.0, your XPath should have returned Info node and

Count number of times a word-wildcard appears in text (in R)

邮差的信 提交于 2019-12-11 11:55:07
问题 I have a vector of either regular words ("activated") or wildcard words ("activat*"). I want to: 1) Count the number of times each word appears in a given text (i.e., if "activated" appears in text, "activated" frequency would be 1). 2) Count the number of times each word wildcard appears in a text (i.e., if "activated" and "activation" appear in text, "activat*" frequency would be 2). I'm able to achieve (1), but not (2). Can anyone please help? thanks. library(tm) library(qdap) text <-

Import symbols with wildcard, but rename or ignore some of them

孤人 提交于 2019-12-11 11:43:52
问题 I want to import most Scala Swing symbols with a few exceptions. The exceptions are classes for which I have provided my own implementation, like ToggleButton , which has only a rudimentary implementation in the scala.swing (no constructor taking Action ). I can use different names for my classes (like ToggleButtonEx ), but this makes using them less natural. I am looking for something like: import scala.swing.{ToggleButton => SToggleButton, _} // import all but ToggleButton import mydomain

PHP mysql select query where (wildcard)

♀尐吖头ヾ 提交于 2019-12-11 10:35:34
问题 I'm trying to use the following MySQL query, but there is obviously something wrong. I'm trying to make page.php or page.php?q= return the following query: if (!isset($_GET['q'])) { $where = "WHERE column1 LIKE %"; } else { $where = "WHERE column1 LIKE ".$_GET['q']; } $query = "SELECT column1, column2 FROM table '$where' GROUP BY column1"; So if there is no GET, then there is no WHERE in the MySQL query. I the GET is set to something, then there is a WHERE with that GET value. Currently I'm

Rails wildcard route with database lookup & multiple controllers

此生再无相见时 提交于 2019-12-11 10:24:47
问题 I have a Rails application setup where, after all of the other site routes are defined, I have a catch-all wildcard for my Users to display their Profiles on selected root-level "vanity" URLs of non-reserved paths/keywords: get '*path' => 'profiles#show' The Profiles controller then checks to make sure the path defines a valid Profile, otherwise redirects to root. This works fine. What I need to do now is create a mechanism where the catch-all path could define either a Profile or a Blog,

excel macro vba Filtering using wildcards

走远了吗. 提交于 2019-12-11 09:08:00
问题 I need to filter in pivot. I need to deselect all items starting with "A." and "H." and keep everything else selected. the items ranges from: A.(3-13 characters) B.(3-13 characters) all the way to Z.(3-13 characters) the raw data also changes from 50-500 rows (I can have a data with only 50 rows today - then tomorrow I may have over 500) my current code works: (by entering all possible items which appears on that column - roughly over 300 items) its long but it works. lately I've been getting

Snakemake: How to use config file efficiently

不打扰是莪最后的温柔 提交于 2019-12-11 08:54:43
问题 I'm using the following config file format in snakemake for a some sequencing analysis practice (I have loads of samples each containing 2 fastq files: samples: Sample1_XY: - fastq_files/SRR4356728_1.fastq.gz - fastq_files/SRR4356728_2.fastq.gz Sample2_AB: - fastq_files/SRR6257171_1.fastq.gz - fastq_files/SRR6257171_2.fastq.gz I'm using the following rules at the start of my pipeline to run fastqc and for alignment of the fastqc files: import os # read config info into this namespace