I want to use a regular expression to confirm if a URL that includes query parameters only includes a single ?. So far, I have a pattern of "^http.*?\?[^\?]+", which sort of works, but fails to apply to the entire match string. For example, with "http://somedomain.com?a=aaaaaaa&b=bbbbbbbbb"...
i have a sql server 2000 database with a table that includes an identity primary key field. it also includes an int field called "referenceCode" . the "referenceCode" value is set by the application that uses the database and is incremented for new records under certain conditions.
due to a...
i have an array of strings representing files to copy. each one needs to be copied to a central location. i have code like...
foreach ($file in $files)
{
write-host "copying $file";
copy-item -path $file -destination $targetFolder
}
the content for $file might look like...
so i've basically got a code file with comments where i want to remove the comments using a regular expression. the comments are identified with /* and */, which can span multiple lines. the final solution from a prior post was to use:
[Regex]::Replace("/\*.*?\*/","")
unfortunately, the...
is it possible to use a regular expression to remove all comments from a code file? for example, if i have a file with:
here is some code
/* here
are some
comments */
here is some code
is there a way to specify a regexp pattern such that it will remove the comment. i wanted to do...
i have a powershell script that runs some installation tasks. it also reads a config file that can contain references to other executables, batch files or powershell scripts to run. basically, the intent is to allow individual users to add additional functionality to the primary script through...
i have an program where i'm extracting xml from comments in a vbs file and then i need to output an html file using an xsl file for the transformation. to that end, i have code of...
XslCompiledTransform transformer = new XslCompiledTransform();
transformer.Load(xslFile);
string xmlContent =...
i'm using an xslt file to output an html file from an xml file. the output html file needs to include a link to a javascript file. to that end, the xslt file includes...
<xsl:output method="html" encoding="utf-16"/>
<xsl:template match="/">
<html>
<head>
<script...
i want to create an html page by parsing a source xml file using xslt. the end product should include a javascript function that takes an element id as a parameter. the javascript function is called by the onclick method of certain <span> elements. for example...
<span...
my understanding is that when outputting a select statment to file, the default record separator is a newline character (LF). i need to change this to CR/LF. i see documentation about the -R option when running a query from PSQL, but i can't find any documentation on what valid values are for...
i have a powershell script that loads other powershell scripts. when i run this script in a powershell session, it runs fine. however, if i run it from a standard command window, any functions defined in the secondary powershell scripts are no longer recognized!? anyone familiar with this...
i want to build some libraries of routines to call from other powershell scripts. from what i've gathered, you can include something like...
. c:\folder\script.ps1
at the start of a script to load the other script, making any functions in the file available to the currently running script...
i have a single "tasks" table with a taskID primary key and a parentID field. the parentID field is an "informal" foreign key in that i've not establish a formal relation between the taskID field and the parentID field.
tasks
---------------
taskID
parentID
task
...
i need a query that will...
i've got a datagridview that includes a checkbox column. the datagridview is bound to a bindingsource. the underlying table includes a field named "active" of type "bit" (sql server) with a default value of 0 configured at the database level. the checkbox is bound to the "active" field. when...
does vbscript provide any tools for outputting text based on a regular expression? i basically want to use regular expressions as text generators. for example, if i have a regular expression that indicates a max length of 20 alpha characters, then it would output a random string of 0 to 20...
i'm using an architecture called dOOdads. it provides a base "businessentity" class from which derived classes are created that map to each table/view in a database. for example, i have a database with a table called "generics" and another called "specifics". in my project, i have a class...
i'm using vs2005, working on a c++ application. i'm trying to create a base template class and inherit from that, but the project returns an error when it compiles. for example, the base class would look like...
template <class T>
class BaseTable
{
public:
BaseTable(void)...
hi all. i'm trying to write a generic trigger function that can be called by any trigger belonging to any table. here's what i've got...
CREATE OR REPLACE FUNCTION process_table_activity_details()
RETURNS "trigger" AS
$BODY$
DECLARE
table_ident varchar(100);
strsql varchar(1000)...
i want to create a function that will add a trigger to every user table in a database. i tried the following, but it gives me an error nearw keyword "trigger". is what i'm trying to do possible or is the "execute" statement not able to run "create" statements?
CREATE OR REPLACE FUNCTION...
i have an access 2003 adp project with a sql server 2000 backend. i have a form that is opened with the standard docmd.openform and includes a filter for foreign key value, which sets the form's "serverfilter" property to something like "testPassExecutionID=65", for example.
the form displays...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.